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

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

Issue 1225093003: mac: Flush the autorelease pool after making a browser window in browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_test_base
Patch Set: Comments from jhawkins, round two. Created 5 years, 5 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
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/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 3911 matching lines...) Expand 10 before | Expand all | Expand 10 after
3922 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderWindowClose) { 3922 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderWindowClose) {
3923 DisableLoadEventCheck(); 3923 DisableLoadEventCheck();
3924 PrerenderTestURL("files/prerender/prerender_window_close.html", 3924 PrerenderTestURL("files/prerender/prerender_window_close.html",
3925 FINAL_STATUS_CLOSED, 0); 3925 FINAL_STATUS_CLOSED, 0);
3926 } 3926 }
3927 3927
3928 class PrerenderIncognitoBrowserTest : public PrerenderBrowserTest { 3928 class PrerenderIncognitoBrowserTest : public PrerenderBrowserTest {
3929 public: 3929 public:
3930 void SetUpOnMainThread() override { 3930 void SetUpOnMainThread() override {
3931 Profile* normal_profile = current_browser()->profile(); 3931 Profile* normal_profile = current_browser()->profile();
3932 set_browser(ui_test_utils::OpenURLOffTheRecord( 3932 set_browser(OpenURLOffTheRecord(normal_profile, GURL("about:blank")));
3933 normal_profile, GURL("about:blank")));
3934 PrerenderBrowserTest::SetUpOnMainThread(); 3933 PrerenderBrowserTest::SetUpOnMainThread();
3935 } 3934 }
3936 }; 3935 };
3937 3936
3938 // Checks that prerendering works in incognito mode. 3937 // Checks that prerendering works in incognito mode.
3939 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) { 3938 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) {
3940 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); 3939 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1);
3941 NavigateToDestURL(); 3940 NavigateToDestURL();
3942 } 3941 }
3943 3942
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 4138
4140 NavigateToDestURL(); 4139 NavigateToDestURL();
4141 EXPECT_EQ(1U, task_manager.tasks().size()); 4140 EXPECT_EQ(1U, task_manager.tasks().size());
4142 } 4141 }
4143 4142
4144 } // namespace 4143 } // namespace
4145 4144
4146 #endif // defined(ENABLE_TASK_MANAGER) 4145 #endif // defined(ENABLE_TASK_MANAGER)
4147 4146
4148 } // namespace prerender 4147 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prefetch/prefetch_browsertest.cc ('k') | chrome/browser/profiles/host_zoom_map_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698