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

Side by Side Diff: chrome/browser/extensions/extension_proxy_apitest.cc

Issue 3296003: FBTF: Move the TabRestoreService::Observer into its own file. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: More mac fixes Created 10 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
« no previous file with comments | « chrome/browser/extensions/extension_management_api.cc ('k') | chrome/browser/jumplist_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/browser.h" 5 #include "chrome/browser/browser.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/browser/profile.h"
8 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
11 12
12 // Tests setting a single proxy to cover all schemes. 13 // Tests setting a single proxy to cover all schemes.
13 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ProxySingle) { 14 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ProxySingle) {
14 CommandLine::ForCurrentProcess()->AppendSwitch( 15 CommandLine::ForCurrentProcess()->AppendSwitch(
15 switches::kEnableExperimentalExtensionApis); 16 switches::kEnableExperimentalExtensionApis);
16 17
17 ASSERT_TRUE(RunExtensionTest("proxy/single")) << message_; 18 ASSERT_TRUE(RunExtensionTest("proxy/single")) << message_;
(...skipping 23 matching lines...) Expand all
41 PrefService* pref_service = browser()->profile()->GetPrefs(); 42 PrefService* pref_service = browser()->profile()->GetPrefs();
42 43
43 // There should be no values superseding the extension-set proxy in this test. 44 // There should be no values superseding the extension-set proxy in this test.
44 std::string proxy_server = pref_service->GetString(prefs::kProxyServer); 45 std::string proxy_server = pref_service->GetString(prefs::kProxyServer);
45 46
46 ASSERT_EQ("http=http://1.1.1.1;" 47 ASSERT_EQ("http=http://1.1.1.1;"
47 "https=socks://2.2.2.2;" 48 "https=socks://2.2.2.2;"
48 "ftp=http://3.3.3.3:9000;" 49 "ftp=http://3.3.3.3:9000;"
49 "socks=socks4://4.4.4.4:9090", proxy_server); 50 "socks=socks4://4.4.4.4:9090", proxy_server);
50 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_api.cc ('k') | chrome/browser/jumplist_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698