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/platform_thread.h" | 7 #include "base/platform_thread.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/test/test_file_util.h" | 9 #include "base/test/test_file_util.h" |
10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/net/url_request_mock_http_job.h" | 11 #include "chrome/browser/net/url_request_mock_http_job.h" |
12 #include "chrome/browser/download/save_package.h" | 12 #include "chrome/browser/download/save_package.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/test/automation/browser_proxy.h" | 14 #include "chrome/test/automation/browser_proxy.h" |
15 #include "chrome/test/automation/tab_proxy.h" | 15 #include "chrome/test/automation/tab_proxy.h" |
16 #include "chrome/test/ui/ui_test.h" | 16 #include "chrome/test/ui/ui_test.h" |
17 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/ui_test_utils.h" |
18 #include "net/url_request/url_request_unittest.h" | 18 #include "net/url_request/url_request_unittest.h" |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 automation()->SavePackageShouldPromptUser(false); | 85 automation()->SavePackageShouldPromptUser(false); |
86 EXPECT_TRUE(browser->RunCommandAsync(IDC_SAVE_PAGE)); | 86 EXPECT_TRUE(browser->RunCommandAsync(IDC_SAVE_PAGE)); |
87 EXPECT_TRUE(WaitForDownloadShelfVisible(browser.get())); | 87 EXPECT_TRUE(WaitForDownloadShelfVisible(browser.get())); |
88 automation()->SavePackageShouldPromptUser(true); | 88 automation()->SavePackageShouldPromptUser(true); |
89 | 89 |
90 CheckFile(full_file_name, file_name); | 90 CheckFile(full_file_name, file_name); |
91 EXPECT_TRUE(file_util::DieFileDie(full_file_name, false)); | 91 EXPECT_TRUE(file_util::DieFileDie(full_file_name, false)); |
92 EXPECT_TRUE(file_util::DieFileDie(dir, true)); | 92 EXPECT_TRUE(file_util::DieFileDie(dir, true)); |
93 } | 93 } |
94 #endif | 94 #endif |
OLD | NEW |