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

Unified Diff: chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc

Issue 2419733005: Extract a base class from CommandLinePrefStore (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc
diff --git a/chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc b/chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc
similarity index 95%
rename from chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc
rename to chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc
index d349381c6656a8ab9e9b535064b39608ac81d06f..4f44d17f2fcb12773ed787242dd9d2af205fdac4 100644
--- a/chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc
+++ b/chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/ssl_config/ssl_config_service_manager.h"
-
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "chrome/browser/prefs/command_line_pref_store.h"
+#include "chrome/browser/prefs/chrome_command_line_pref_store.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/testing_pref_store.h"
#include "components/ssl_config/ssl_config_prefs.h"
+#include "components/ssl_config/ssl_config_service_manager.h"
#include "components/ssl_config/ssl_config_switches.h"
#include "components/syncable_prefs/pref_service_mock_factory.h"
#include "net/ssl/ssl_config.h"
@@ -41,7 +40,7 @@ TEST_F(CommandLinePrefStoreSSLManagerTest, CommandLinePrefs) {
syncable_prefs::PrefServiceMockFactory factory;
factory.set_user_prefs(local_state_store);
- factory.set_command_line_prefs(new CommandLinePrefStore(&command_line));
+ factory.set_command_line_prefs(new ChromeCommandLinePrefStore(&command_line));
scoped_refptr<PrefRegistrySimple> registry = new PrefRegistrySimple;
std::unique_ptr<PrefService> local_state(factory.Create(registry.get()));

Powered by Google App Engine
This is Rietveld 408576698