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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <gtest/gtest.h> 5 #include <gtest/gtest.h>
6 6
7 #include "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/prefs/command_line_pref_store.h" 11 #include "chrome/browser/prefs/command_line_pref_store.h"
12 #include "chrome/browser/prefs/proxy_prefs.h" 12 #include "chrome/browser/prefs/proxy_prefs.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "ui/base/ui_base_switches.h"
15 16
16 namespace { 17 namespace {
17 18
18 class TestCommandLinePrefStore : public CommandLinePrefStore { 19 class TestCommandLinePrefStore : public CommandLinePrefStore {
19 public: 20 public:
20 explicit TestCommandLinePrefStore(CommandLine* cl) 21 explicit TestCommandLinePrefStore(CommandLine* cl)
21 : CommandLinePrefStore(cl) {} 22 : CommandLinePrefStore(cl) {}
22 23
23 bool ProxySwitchesAreValid() { 24 bool ProxySwitchesAreValid() {
24 return ValidateProxySwitches(); 25 return ValidateProxySwitches();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 cl1.AppendSwitch(unknown_string); 130 cl1.AppendSwitch(unknown_string);
130 cl1.AppendSwitchASCII(switches::kProxyServer, "proxy"); 131 cl1.AppendSwitchASCII(switches::kProxyServer, "proxy");
131 TestCommandLinePrefStore store1(&cl1); 132 TestCommandLinePrefStore store1(&cl1);
132 store1.VerifyIntPref(prefs::kProxyMode, ProxyPrefs::MODE_FIXED_SERVERS); 133 store1.VerifyIntPref(prefs::kProxyMode, ProxyPrefs::MODE_FIXED_SERVERS);
133 134
134 CommandLine cl2(CommandLine::NO_PROGRAM); 135 CommandLine cl2(CommandLine::NO_PROGRAM);
135 cl2.AppendSwitchASCII(switches::kProxyPacUrl, "proxy"); 136 cl2.AppendSwitchASCII(switches::kProxyPacUrl, "proxy");
136 TestCommandLinePrefStore store2(&cl2); 137 TestCommandLinePrefStore store2(&cl2);
137 store2.VerifyIntPref(prefs::kProxyMode, ProxyPrefs::MODE_PAC_SCRIPT); 138 store2.VerifyIntPref(prefs::kProxyMode, ProxyPrefs::MODE_PAC_SCRIPT);
138 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698