| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |