summaryrefslogtreecommitdiffstats
path: root/net/ssl
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:59:02 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:59:02 +0000
commit1d51882f44178fb5bdbf6a7f31e435c9d6de652a (patch)
tree97388deda6011a2d2897a8d4eea831a6bc56b568 /net/ssl
parent9e9a06a3d002a799246a5dbbd9d95aef999185c9 (diff)
downloadchromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.zip
chromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.tar.gz
chromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.tar.bz2
Fixes for -Wunused-function on Linux, Android and ChromeOS
BUG=315884, 78045 TBR=owners Review URL: https://codereview.chromium.org/67923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ssl')
-rw-r--r--net/ssl/server_bound_cert_service_unittest.cc27
1 files changed, 15 insertions, 12 deletions
diff --git a/net/ssl/server_bound_cert_service_unittest.cc b/net/ssl/server_bound_cert_service_unittest.cc
index fc25b0b..4df0039 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"));