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

Side by Side Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <list> 5 #include <list>
6 #include <set> 6 #include <set>
7 7
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 class WebNavigationApiTest : public ExtensionApiTest { 254 class WebNavigationApiTest : public ExtensionApiTest {
255 public: 255 public:
256 WebNavigationApiTest() {} 256 WebNavigationApiTest() {}
257 ~WebNavigationApiTest() override {} 257 ~WebNavigationApiTest() override {}
258 258
259 void SetUpInProcessBrowserTestFixture() override { 259 void SetUpInProcessBrowserTestFixture() override {
260 ExtensionApiTest::SetUpInProcessBrowserTestFixture(); 260 ExtensionApiTest::SetUpInProcessBrowserTestFixture();
261 261
262 FrameNavigationState::set_allow_extension_scheme(true); 262 FrameNavigationState::set_allow_extension_scheme(true);
263 263
264 CommandLine::ForCurrentProcess()->AppendSwitch( 264 base::CommandLine::ForCurrentProcess()->AppendSwitch(
265 switches::kAllowLegacyExtensionManifests); 265 switches::kAllowLegacyExtensionManifests);
266 266
267 host_resolver()->AddRule("*", "127.0.0.1"); 267 host_resolver()->AddRule("*", "127.0.0.1");
268 } 268 }
269 269
270 void SetUpOnMainThread() override { 270 void SetUpOnMainThread() override {
271 ExtensionApiTest::SetUpOnMainThread(); 271 ExtensionApiTest::SetUpOnMainThread();
272 test_navigation_listener_ = new TestNavigationListener(); 272 test_navigation_listener_ = new TestNavigationListener();
273 resource_dispatcher_host_delegate_.reset( 273 resource_dispatcher_host_delegate_.reset(
274 new TestResourceDispatcherHostDelegate( 274 new TestResourceDispatcherHostDelegate(
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 "extensions/api_test/webnavigation/crash/b.html", 626 "extensions/api_test/webnavigation/crash/b.html",
627 embedded_test_server()->port())); 627 embedded_test_server()->port()));
628 ui_test_utils::NavigateToURL(browser(), url); 628 ui_test_utils::NavigateToURL(browser(), url);
629 629
630 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); 630 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message();
631 } 631 }
632 632
633 #endif 633 #endif
634 634
635 } // namespace extensions 635 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698