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

Side by Side Diff: net/base/ssl_config_service_unittest.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/ssl_config_service.h" 5 #include "net/base/ssl_config_service.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 using base::TimeDelta;
9 using base::TimeTicks;
10
8 namespace { 11 namespace {
9 12
10 class SSLConfigServiceTest : public testing::Test { 13 class SSLConfigServiceTest : public testing::Test {
11 }; 14 };
12 15
13 } // namespace 16 } // namespace
14 17
15 TEST(SSLConfigServiceTest, GetNowTest) { 18 TEST(SSLConfigServiceTest, GetNowTest) {
16 // Verify that the constructor sets the correct default values. 19 // Verify that the constructor sets the correct default values.
17 net::SSLConfig config; 20 net::SSLConfig config;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 config_service.GetSSLConfigAt(&config_1, now_1); 78 config_service.GetSSLConfigAt(&config_1, now_1);
76 EXPECT_EQ(config.rev_checking_enabled, config_1.rev_checking_enabled); 79 EXPECT_EQ(config.rev_checking_enabled, config_1.rev_checking_enabled);
77 80
78 config_service.GetSSLConfigAt(&config_11, now_11); 81 config_service.GetSSLConfigAt(&config_11, now_11);
79 EXPECT_EQ(!config.rev_checking_enabled, config_11.rev_checking_enabled); 82 EXPECT_EQ(!config.rev_checking_enabled, config_11.rev_checking_enabled);
80 83
81 // Restore the original value. 84 // Restore the original value.
82 net::SSLConfigService::SetRevCheckingEnabled(config.rev_checking_enabled); 85 net::SSLConfigService::SetRevCheckingEnabled(config.rev_checking_enabled);
83 } 86 }
84 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698