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

Side by Side Diff: chrome/browser/net/ssl_config_service_manager_pref_unittest.cc

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/net/ssl_config_service_manager.h" 5 #include "chrome/browser/net/ssl_config_service_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/testing_pref_store.h" 11 #include "base/prefs/testing_pref_store.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/prefs/command_line_pref_store.h" 13 #include "chrome/browser/prefs/command_line_pref_store.h"
14 #include "chrome/browser/prefs/pref_service_mock_factory.h"
15 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
17 #include "chrome/test/base/testing_pref_service_syncable.h"
18 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
19 #include "components/content_settings/core/browser/host_content_settings_map.h" 17 #include "components/content_settings/core/browser/host_content_settings_map.h"
20 #include "components/content_settings/core/common/content_settings.h" 18 #include "components/content_settings/core/common/content_settings.h"
19 #include "components/syncable_prefs/pref_service_mock_factory.h"
20 #include "components/syncable_prefs/testing_pref_service_syncable.h"
21 #include "content/public/test/test_browser_thread.h" 21 #include "content/public/test/test_browser_thread.h"
22 #include "net/socket/ssl_client_socket.h" 22 #include "net/socket/ssl_client_socket.h"
23 #include "net/ssl/ssl_config_service.h" 23 #include "net/ssl/ssl_config_service.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using base::ListValue; 26 using base::ListValue;
27 using base::Value; 27 using base::Value;
28 using content::BrowserThread; 28 using content::BrowserThread;
29 using net::SSLConfig; 29 using net::SSLConfig;
30 using net::SSLConfigService; 30 using net::SSLConfigService;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 SSLConfigServiceManager::CreateDefaultManager(local_state.get())); 233 SSLConfigServiceManager::CreateDefaultManager(local_state.get()));
234 ASSERT_TRUE(config_manager.get()); 234 ASSERT_TRUE(config_manager.get());
235 scoped_refptr<SSLConfigService> config_service(config_manager->Get()); 235 scoped_refptr<SSLConfigService> config_service(config_manager->Get());
236 ASSERT_TRUE(config_service.get()); 236 ASSERT_TRUE(config_service.get());
237 237
238 SSLConfig ssl_config; 238 SSLConfig ssl_config;
239 config_service->GetSSLConfig(&ssl_config); 239 config_service->GetSSLConfig(&ssl_config);
240 // The command-line option must not have been honored. 240 // The command-line option must not have been honored.
241 EXPECT_LE(net::SSL_PROTOCOL_VERSION_TLS1, ssl_config.version_min); 241 EXPECT_LE(net::SSL_PROTOCOL_VERSION_TLS1, ssl_config.version_min);
242 } 242 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate_unittest.cc ('k') | chrome/browser/notifications/extension_welcome_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698