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

Side by Side Diff: chrome/browser/prefs/command_line_pref_store_proxy_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/prefs/command_line_pref_store.h" 5 #include "chrome/browser/prefs/command_line_pref_store.h"
6 6
7 #include <gtest/gtest.h> 7 #include <gtest/gtest.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/prefs/pref_registry_simple.h"
14 #include "base/prefs/pref_service.h"
15 #include "chrome/browser/prefs/command_line_pref_store.h" 13 #include "chrome/browser/prefs/command_line_pref_store.h"
16 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "components/prefs/pref_registry_simple.h"
16 #include "components/prefs/pref_service.h"
17 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 17 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
18 #include "components/syncable_prefs/pref_service_mock_factory.h" 18 #include "components/syncable_prefs/pref_service_mock_factory.h"
19 #include "net/proxy/proxy_config_service_common_unittest.h" 19 #include "net/proxy/proxy_config_service_common_unittest.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Test parameter object for testing command line proxy configuration. 24 // Test parameter object for testing command line proxy configuration.
25 struct CommandLineTestParams { 25 struct CommandLineTestParams {
26 // Short description to identify the test. 26 // Short description to identify the test.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 TEST_P(CommandLinePrefStoreProxyTest, CommandLine) { 188 TEST_P(CommandLinePrefStoreProxyTest, CommandLine) {
189 EXPECT_EQ(GetParam().auto_detect, proxy_config()->auto_detect()); 189 EXPECT_EQ(GetParam().auto_detect, proxy_config()->auto_detect());
190 EXPECT_EQ(GetParam().pac_url, proxy_config()->pac_url()); 190 EXPECT_EQ(GetParam().pac_url, proxy_config()->pac_url());
191 EXPECT_TRUE(GetParam().proxy_rules.Matches(proxy_config()->proxy_rules())); 191 EXPECT_TRUE(GetParam().proxy_rules.Matches(proxy_config()->proxy_rules()));
192 } 192 }
193 193
194 INSTANTIATE_TEST_CASE_P(CommandLinePrefStoreProxyTestInstance, 194 INSTANTIATE_TEST_CASE_P(CommandLinePrefStoreProxyTestInstance,
195 CommandLinePrefStoreProxyTest, 195 CommandLinePrefStoreProxyTest,
196 testing::ValuesIn(kCommandLineTestParams)); 196 testing::ValuesIn(kCommandLineTestParams));
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.h ('k') | chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698