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

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

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/prefs/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 12
13 // Tests auto-detect and PAC proxy settings. 13 // Tests auto-detect and PAC proxy settings.
14 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ProxyAutoSettings) { 14 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ProxyAutoSettings) {
15 CommandLine::ForCurrentProcess()->AppendSwitch( 15 CommandLine::ForCurrentProcess()->AppendSwitch(
16 switches::kEnableExperimentalExtensionApis); 16 switches::kEnableExperimentalExtensionApis);
17 17
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 pref = pref_service->FindPreference(prefs::kProxyAutoDetect); 103 pref = pref_service->FindPreference(prefs::kProxyAutoDetect);
104 ASSERT_TRUE(pref != NULL); 104 ASSERT_TRUE(pref != NULL);
105 EXPECT_TRUE(pref->IsExtensionControlled()); 105 EXPECT_TRUE(pref->IsExtensionControlled());
106 EXPECT_FALSE(pref_service->GetBoolean(prefs::kProxyAutoDetect)); 106 EXPECT_FALSE(pref_service->GetBoolean(prefs::kProxyAutoDetect));
107 107
108 pref = pref_service->FindPreference(prefs::kProxyPacUrl); 108 pref = pref_service->FindPreference(prefs::kProxyPacUrl);
109 ASSERT_TRUE(pref != NULL); 109 ASSERT_TRUE(pref != NULL);
110 EXPECT_TRUE(pref->IsExtensionControlled()); 110 EXPECT_TRUE(pref->IsExtensionControlled());
111 EXPECT_EQ("", pref_service->GetString(prefs::kProxyPacUrl)); 111 EXPECT_EQ("", pref_service->GetString(prefs::kProxyPacUrl));
112 } 112 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_processes_api.cc ('k') | chrome/browser/extensions/extension_sidebar_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698