| Index: net/ssl/server_bound_cert_service_unittest.cc
|
| diff --git a/net/ssl/server_bound_cert_service_unittest.cc b/net/ssl/server_bound_cert_service_unittest.cc
|
| index fc25b0b93227261f5a4c8f9de141a953a58580a0..4df003913aa0b74d96558ca05d8a6d5de9e069b6 100644
|
| --- a/net/ssl/server_bound_cert_service_unittest.cc
|
| +++ b/net/ssl/server_bound_cert_service_unittest.cc
|
| @@ -24,6 +24,7 @@ namespace net {
|
|
|
| namespace {
|
|
|
| +#if !defined(USE_OPENSSL)
|
| void FailTest(int /* result */) {
|
| FAIL();
|
| }
|
| @@ -50,18 +51,6 @@ class FailingTaskRunner : public base::TaskRunner {
|
| DISALLOW_COPY_AND_ASSIGN(FailingTaskRunner);
|
| };
|
|
|
| -class ServerBoundCertServiceTest : public testing::Test {
|
| - public:
|
| - ServerBoundCertServiceTest()
|
| - : service_(new ServerBoundCertService(
|
| - new DefaultServerBoundCertStore(NULL),
|
| - base::MessageLoopProxy::current())) {
|
| - }
|
| -
|
| - protected:
|
| - scoped_ptr<ServerBoundCertService> service_;
|
| -};
|
| -
|
| class MockServerBoundCertStoreWithAsyncGet
|
| : public DefaultServerBoundCertStore {
|
| public:
|
| @@ -128,6 +117,20 @@ MockServerBoundCertStoreWithAsyncGet::CallGetServerBoundCertCallbackWithResult(
|
| cert));
|
| }
|
|
|
| +#endif // !defined(USE_OPENSSL)
|
| +
|
| +class ServerBoundCertServiceTest : public testing::Test {
|
| + public:
|
| + ServerBoundCertServiceTest()
|
| + : service_(new ServerBoundCertService(
|
| + new DefaultServerBoundCertStore(NULL),
|
| + base::MessageLoopProxy::current())) {
|
| + }
|
| +
|
| + protected:
|
| + scoped_ptr<ServerBoundCertService> service_;
|
| +};
|
| +
|
| TEST_F(ServerBoundCertServiceTest, GetDomainForHost) {
|
| EXPECT_EQ("google.com",
|
| ServerBoundCertService::GetDomainForHost("google.com"));
|
|
|