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

Side by Side Diff: chrome/browser/download/download_browsertest.cc

Issue 292713003: Session restore shouldn't care about profile home pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable 2 tests on mac (they fail after "fixed") Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <sstream> 5 #include <sstream>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 DownloadAndWait(browser(), url); 1326 DownloadAndWait(browser(), url);
1327 1327
1328 CheckDownload(browser(), download_file, file); 1328 CheckDownload(browser(), download_file, file);
1329 1329
1330 // Check state. 1330 // Check state.
1331 EXPECT_EQ(1, browser()->tab_strip_model()->count()); 1331 EXPECT_EQ(1, browser()->tab_strip_model()->count());
1332 EXPECT_TRUE(browser()->window()->IsDownloadShelfVisible()); 1332 EXPECT_TRUE(browser()->window()->IsDownloadShelfVisible());
1333 1333
1334 // Open a second tab and wait. 1334 // Open a second tab and wait.
1335 EXPECT_NE(static_cast<WebContents*>(NULL), 1335 EXPECT_NE(static_cast<WebContents*>(NULL),
1336 chrome::AddSelectedTabWithURL(browser(), GURL(), 1336 chrome::AddSelectedTabWithURL(browser(),
1337 GURL(content::kAboutBlankURL),
1337 content::PAGE_TRANSITION_TYPED)); 1338 content::PAGE_TRANSITION_TYPED));
1338 EXPECT_EQ(2, browser()->tab_strip_model()->count()); 1339 EXPECT_EQ(2, browser()->tab_strip_model()->count());
1339 EXPECT_TRUE(browser()->window()->IsDownloadShelfVisible()); 1340 EXPECT_TRUE(browser()->window()->IsDownloadShelfVisible());
1340 1341
1341 // Hide the download shelf. 1342 // Hide the download shelf.
1342 browser()->window()->GetDownloadShelf()->Close(DownloadShelf::AUTOMATIC); 1343 browser()->window()->GetDownloadShelf()->Close(DownloadShelf::AUTOMATIC);
1343 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); 1344 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible());
1344 1345
1345 // Go to the first tab. 1346 // Go to the first tab.
1346 browser()->tab_strip_model()->ActivateTabAt(0, true); 1347 browser()->tab_strip_model()->ActivateTabAt(0, true);
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadTest_GZipWithNoContent) { 3224 IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadTest_GZipWithNoContent) {
3224 ASSERT_TRUE(test_server()->Start()); 3225 ASSERT_TRUE(test_server()->Start());
3225 GURL url(test_server()->GetURL("files/downloads/empty.bin")); 3226 GURL url(test_server()->GetURL("files/downloads/empty.bin"));
3226 // Downloading the same URL twice causes the second request to be served from 3227 // Downloading the same URL twice causes the second request to be served from
3227 // cached (with a high probability). This test verifies that that doesn't 3228 // cached (with a high probability). This test verifies that that doesn't
3228 // happen regardless of whether the request is served via the cache or from 3229 // happen regardless of whether the request is served via the cache or from
3229 // the network. 3230 // the network.
3230 DownloadAndWait(browser(), url); 3231 DownloadAndWait(browser(), url);
3231 DownloadAndWait(browser(), url); 3232 DownloadAndWait(browser(), url);
3232 } 3233 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698