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 <sstream> | 5 #include <sstream> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <shlwapi.h> | 10 #include <shlwapi.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/platform_thread.h" | 16 #include "base/platform_thread.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/test/test_file_util.h" | 18 #include "base/test/test_file_util.h" |
19 #include "chrome/app/chrome_dll_resource.h" | 19 #include "chrome/app/chrome_command_ids.h" |
20 #include "chrome/browser/net/url_request_mock_http_job.h" | 20 #include "chrome/browser/net/url_request_mock_http_job.h" |
21 #include "chrome/browser/net/url_request_slow_download_job.h" | 21 #include "chrome/browser/net/url_request_slow_download_job.h" |
22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/test/ui/ui_test.h" | 25 #include "chrome/test/ui/ui_test.h" |
26 #include "chrome/test/automation/tab_proxy.h" | 26 #include "chrome/test/automation/tab_proxy.h" |
27 #include "chrome/test/automation/browser_proxy.h" | 27 #include "chrome/test/automation/browser_proxy.h" |
28 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
29 #include "net/url_request/url_request_unittest.h" | 29 #include "net/url_request/url_request_unittest.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 FilePath file(FILE_PATH_LITERAL("download-test1.lib")); | 560 FilePath file(FILE_PATH_LITERAL("download-test1.lib")); |
561 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition( | 561 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition( |
562 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW)); | 562 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW)); |
563 | 563 |
564 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2)); | 564 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2)); |
565 | 565 |
566 CheckDownload(file); | 566 CheckDownload(file); |
567 } | 567 } |
568 | 568 |
569 } // namespace | 569 } // namespace |
OLD | NEW |