mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
This commit is contained in:
parent
ae957baa98
commit
ca4940622c
550 changed files with 10253 additions and 10248 deletions
|
@ -14,15 +14,15 @@ class DefaultAuthResolverTest : public CppUnit::TestFixture {
|
|||
private:
|
||||
//NetrcHandle _netrc;
|
||||
//SharedHandle<Option> _option;
|
||||
SharedHandle<DefaultAuthResolver> _resolver;
|
||||
SharedHandle<DefaultAuthResolver> resolver_;
|
||||
public:
|
||||
void setUp()
|
||||
{
|
||||
//_netrc = new Netrc();
|
||||
//_option = new Option();
|
||||
_resolver.reset(new DefaultAuthResolver());
|
||||
resolver_.reset(new DefaultAuthResolver());
|
||||
//_factory->setOption(_option.get());
|
||||
_resolver->setDefaultAuthConfig
|
||||
resolver_->setDefaultAuthConfig
|
||||
(SharedHandle<AuthConfig>(new AuthConfig("foo", "bar")));
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,15 @@ CPPUNIT_TEST_SUITE_REGISTRATION( DefaultAuthResolverTest );
|
|||
|
||||
void DefaultAuthResolverTest::testResolveAuthConfig_without_userDefined()
|
||||
{
|
||||
SharedHandle<AuthConfig> authConfig = _resolver->resolveAuthConfig("localhost");
|
||||
SharedHandle<AuthConfig> authConfig = resolver_->resolveAuthConfig("localhost");
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("foo:bar"), authConfig->getAuthText());
|
||||
}
|
||||
|
||||
void DefaultAuthResolverTest::testResolveAuthConfig_with_userDefined()
|
||||
{
|
||||
_resolver->setUserDefinedAuthConfig
|
||||
resolver_->setUserDefinedAuthConfig
|
||||
(SharedHandle<AuthConfig>(new AuthConfig("myname", "mypasswd")));
|
||||
SharedHandle<AuthConfig> authConfig = _resolver->resolveAuthConfig("localhost");
|
||||
SharedHandle<AuthConfig> authConfig = resolver_->resolveAuthConfig("localhost");
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("myname:mypasswd"), authConfig->getAuthText());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue