Skip to content

Commit

Permalink
Increase max memory allowed for prerendered pages during browser tests.
Browse files Browse the repository at this point in the history
On debug bots we'd occasionally hit the 100MB limit and the test would flake.

BUG=93076
TEST=browser_tests --gtest_filter=PrerenderBrowserTest.*


Review URL: http://codereview.chromium.org/7648056

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97142 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
cbentzel@chromium.org committed Aug 17, 2011
1 parent 3d6293a commit 371d61a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chrome/browser/prerender/prerender_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ class PrerenderBrowserTest : public InProcessBrowserTest {
virtual void SetUpOnMainThread() OVERRIDE {
browser()->profile()->GetPrefs()->SetBoolean(prefs::kPromptForDownload,
false);
// Increase the memory allowed in a prerendered page above normal settings.
// Debug build bots occasionally run against the default limit, and tests
// were failing because the prerender was canceled due to memory exhaustion.
// http://crbug.com/93076
prerender_manager()->mutable_config().max_bytes = 1000 * 1024 * 1024;
ASSERT_TRUE(test_server()->Start());
}

Expand Down

0 comments on commit 371d61a

Please sign in to comment.