| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <deque> | 5 #include <deque> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 }; | 401 }; |
| 402 #endif | 402 #endif |
| 403 | 403 |
| 404 class FakeDevToolsClientHost : public DevToolsClientHost { | 404 class FakeDevToolsClientHost : public DevToolsClientHost { |
| 405 public: | 405 public: |
| 406 FakeDevToolsClientHost() {} | 406 FakeDevToolsClientHost() {} |
| 407 virtual ~FakeDevToolsClientHost() {} | 407 virtual ~FakeDevToolsClientHost() {} |
| 408 virtual void InspectedTabClosing() OVERRIDE {} | 408 virtual void InspectedTabClosing() OVERRIDE {} |
| 409 virtual void FrameNavigating(const std::string& url) OVERRIDE {} | 409 virtual void FrameNavigating(const std::string& url) OVERRIDE {} |
| 410 virtual void DispatchOnInspectorFrontend(const std::string& msg) OVERRIDE {} | 410 virtual void DispatchOnInspectorFrontend(const std::string& msg) OVERRIDE {} |
| 411 virtual void TabReplaced(TabContents* new_tab) OVERRIDE {} | 411 virtual void TabReplaced(WebContents* new_tab) OVERRIDE {} |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 } // namespace | 414 } // namespace |
| 415 | 415 |
| 416 class PrerenderBrowserTest : public InProcessBrowserTest { | 416 class PrerenderBrowserTest : public InProcessBrowserTest { |
| 417 public: | 417 public: |
| 418 PrerenderBrowserTest() | 418 PrerenderBrowserTest() |
| 419 : prerender_contents_factory_(NULL), | 419 : prerender_contents_factory_(NULL), |
| 420 #if defined(ENABLE_SAFE_BROWSING) | 420 #if defined(ENABLE_SAFE_BROWSING) |
| 421 safe_browsing_factory_(new TestSafeBrowsingServiceFactory()), | 421 safe_browsing_factory_(new TestSafeBrowsingServiceFactory()), |
| (...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) { | 1902 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) { |
| 1903 set_loader_path("files/prerender/prerender_loader_with_session_storage.html"); | 1903 set_loader_path("files/prerender/prerender_loader_with_session_storage.html"); |
| 1904 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"), | 1904 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"), |
| 1905 FINAL_STATUS_USED, | 1905 FINAL_STATUS_USED, |
| 1906 1); | 1906 1); |
| 1907 NavigateToDestURL(); | 1907 NavigateToDestURL(); |
| 1908 GoBackToPageBeforePrerender(browser()); | 1908 GoBackToPageBeforePrerender(browser()); |
| 1909 } | 1909 } |
| 1910 | 1910 |
| 1911 } // namespace prerender | 1911 } // namespace prerender |
| OLD | NEW |