OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |