Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: net/ssl/server_bound_cert_service_unittest.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/tests/gl_virtual_contexts_unittests.cc ('k') | net/test/python_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"));
« no previous file with comments | « gpu/command_buffer/tests/gl_virtual_contexts_unittests.cc ('k') | net/test/python_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698