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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 16268017: GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready? Created 7 years, 6 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 | Annotate | Revision Log
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 <deque> 5 #include <deque>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2730 PrerenderTestURL("files/prerender/prerender_referrer_policy.html", 2730 PrerenderTestURL("files/prerender/prerender_referrer_policy.html",
2731 FINAL_STATUS_USED, 2731 FINAL_STATUS_USED,
2732 1); 2732 1);
2733 NavigateToDestURL(); 2733 NavigateToDestURL();
2734 } 2734 }
2735 2735
2736 // Test interaction of the webNavigation and tabs API with prerender. 2736 // Test interaction of the webNavigation and tabs API with prerender.
2737 class PrerenderBrowserTestWithExtensions : public PrerenderBrowserTest, 2737 class PrerenderBrowserTestWithExtensions : public PrerenderBrowserTest,
2738 public ExtensionApiTest { 2738 public ExtensionApiTest {
2739 public: 2739 public:
2740 PrerenderBrowserTestWithExtensions() {
2741 autostart_test_server_ = false;
2742 }
2743 virtual ~PrerenderBrowserTestWithExtensions() {}
2744
2745 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 2740 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
2746 PrerenderBrowserTest::SetUpCommandLine(command_line); 2741 PrerenderBrowserTest::SetUpCommandLine(command_line);
2747 ExtensionApiTest::SetUpCommandLine(command_line); 2742 ExtensionApiTest::SetUpCommandLine(command_line);
2748 } 2743 }
2749 2744
2750 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 2745 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
2751 PrerenderBrowserTest::SetUpInProcessBrowserTestFixture(); 2746 PrerenderBrowserTest::SetUpInProcessBrowserTestFixture();
2752 ExtensionApiTest::SetUpInProcessBrowserTestFixture(); 2747 ExtensionApiTest::SetUpInProcessBrowserTestFixture();
2753 } 2748 }
2754 2749
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2898 2893
2899 // Checks that media source video loads are deferred on prerendering. 2894 // Checks that media source video loads are deferred on prerendering.
2900 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderHTML5MediaSourceVideo) { 2895 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderHTML5MediaSourceVideo) {
2901 PrerenderTestURL("files/prerender/prerender_html5_video_media_source.html", 2896 PrerenderTestURL("files/prerender/prerender_html5_video_media_source.html",
2902 FINAL_STATUS_USED, 2897 FINAL_STATUS_USED,
2903 1); 2898 1);
2904 NavigateToDestUrlAndWaitForPassTitle(); 2899 NavigateToDestUrlAndWaitForPassTitle();
2905 } 2900 }
2906 2901
2907 } // namespace prerender 2902 } // namespace prerender
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698