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

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

Issue 3040: Move the Save Page code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | « chrome/browser/download/save_page_model.cc ('k') | chrome/browser/download/save_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/automation/url_request_mock_http_job.h" 8 #include "chrome/browser/automation/url_request_mock_http_job.h"
9 #include "chrome/browser/save_package.h" 9 #include "chrome/browser/download/save_package.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
11 #include "chrome/test/automation/tab_proxy.h" 11 #include "chrome/test/automation/tab_proxy.h"
12 #include "chrome/test/ui/ui_test.h" 12 #include "chrome/test/ui/ui_test.h"
13 #include "net/url_request/url_request_unittest.h" 13 #include "net/url_request/url_request_unittest.h"
14 14
15 const std::wstring kTestDir = L"save_page"; 15 const std::wstring kTestDir = L"save_page";
16 16
17 class SavePageTest : public UITest { 17 class SavePageTest : public UITest {
18 protected: 18 protected:
19 SavePageTest() : UITest() {} 19 SavePageTest() : UITest() {}
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 scoped_ptr<TabProxy> tab(GetActiveTab()); 104 scoped_ptr<TabProxy> tab(GetActiveTab());
105 ASSERT_TRUE(tab->NavigateToURL(GURL(L"about:blank"))); 105 ASSERT_TRUE(tab->NavigateToURL(GURL(L"about:blank")));
106 WaitUntilTabCount(1); 106 WaitUntilTabCount(1);
107 107
108 EXPECT_FALSE(tab->SavePage(full_file_name, dir, 108 EXPECT_FALSE(tab->SavePage(full_file_name, dir,
109 SavePackage::SAVE_AS_ONLY_HTML)); 109 SavePackage::SAVE_AS_ONLY_HTML));
110 EXPECT_FALSE(WaitForDownloadShelfVisible(tab.get())); 110 EXPECT_FALSE(WaitForDownloadShelfVisible(tab.get()));
111 } 111 }
112 112
OLDNEW
« no previous file with comments | « chrome/browser/download/save_page_model.cc ('k') | chrome/browser/download/save_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698