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

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

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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/resources/about_stats.js » ('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/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 1604
1605 ui_test_utils::NavigateToURL(browser(), flags_url); 1605 ui_test_utils::NavigateToURL(browser(), flags_url);
1606 DownloadAndWait(browser(), download_url); 1606 DownloadAndWait(browser(), download_url);
1607 ui_test_utils::NavigateToURL(browser(), extensions_url); 1607 ui_test_utils::NavigateToURL(browser(), extensions_url);
1608 WebContents* contents = 1608 WebContents* contents =
1609 browser()->tab_strip_model()->GetActiveWebContents(); 1609 browser()->tab_strip_model()->GetActiveWebContents();
1610 ASSERT_TRUE(contents); 1610 ASSERT_TRUE(contents);
1611 bool webui_responded = false; 1611 bool webui_responded = false;
1612 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( 1612 EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
1613 contents, 1613 contents,
1614 "window.domAutomationController.send(window.webui_responded_);", 1614 "window.domAutomationController.send(window.webuiResponded);",
1615 &webui_responded)); 1615 &webui_responded));
1616 EXPECT_TRUE(webui_responded); 1616 EXPECT_TRUE(webui_responded);
1617 } 1617 }
1618 1618
1619 // Test for crbug.com/12745. This tests that if a download is initiated from 1619 // Test for crbug.com/12745. This tests that if a download is initiated from
1620 // a chrome:// page that has registered and onunload handler, the browser 1620 // a chrome:// page that has registered and onunload handler, the browser
1621 // will be able to close. 1621 // will be able to close.
1622 IN_PROC_BROWSER_TEST_F(DownloadTest, BrowserCloseAfterDownload) { 1622 IN_PROC_BROWSER_TEST_F(DownloadTest, BrowserCloseAfterDownload) {
1623 GURL downloads_url(chrome::kChromeUIFlagsURL); 1623 GURL downloads_url(chrome::kChromeUIFlagsURL);
1624 base::FilePath file(FILE_PATH_LITERAL("download-test1.lib")); 1624 base::FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 browser()->tab_strip_model()->GetActiveWebContents(); 2412 browser()->tab_strip_model()->GetActiveWebContents();
2413 scoped_ptr<DownloadUrlParameters> params( 2413 scoped_ptr<DownloadUrlParameters> params(
2414 DownloadUrlParameters::FromWebContents(web_contents, url)); 2414 DownloadUrlParameters::FromWebContents(web_contents, url));
2415 params->set_callback(base::Bind(&SetHiddenDownloadCallback)); 2415 params->set_callback(base::Bind(&SetHiddenDownloadCallback));
2416 download_manager->DownloadUrl(params.Pass()); 2416 download_manager->DownloadUrl(params.Pass());
2417 observer->WaitForFinished(); 2417 observer->WaitForFinished();
2418 2418
2419 // Verify that download shelf is not shown. 2419 // Verify that download shelf is not shown.
2420 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); 2420 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible());
2421 } 2421 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/about_stats.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698