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

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

Issue 6248021: Reapply r72562 with willchan's nits + locally tested shlib fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/test/test_file_util.h" 12 #include "base/test/test_file_util.h"
13 #include "base/test/test_timeouts.h" 13 #include "base/test/test_timeouts.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/app/chrome_command_ids.h" 16 #include "chrome/app/chrome_command_ids.h"
17 #include "chrome/browser/download/download_util.h" 17 #include "chrome/browser/download/download_util.h"
18 #include "chrome/browser/net/url_request_mock_http_job.h" 18 #include "chrome/browser/net/url_request_mock_http_job.h"
19 #include "chrome/browser/net/url_request_slow_download_job.h" 19 #include "chrome/browser/net/url_request_slow_download_job.h"
20 #include "chrome/common/chrome_constants.h" 20 #include "chrome/common/chrome_constants.h"
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/test/ui/ui_test.h" 22 #include "chrome/test/ui/ui_test.h"
23 #include "chrome/test/automation/tab_proxy.h" 23 #include "chrome/test/automation/tab_proxy.h"
24 #include "chrome/test/automation/browser_proxy.h" 24 #include "chrome/test/automation/browser_proxy.h"
25 #include "net/base/net_util.h" 25 #include "net/base/net_util.h"
26 #include "net/url_request/url_request_unittest.h" 26 #include "net/url_request/url_request_test_util.h"
27 27
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 #include <shlwapi.h> 29 #include <shlwapi.h>
30 #endif 30 #endif
31 31
32 namespace { 32 namespace {
33 33
34 const wchar_t kDocRoot[] = L"chrome/test/data"; 34 const wchar_t kDocRoot[] = L"chrome/test/data";
35 35
36 class DownloadTest : public UITest { 36 class DownloadTest : public UITest {
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 CleanupDownloadFiles(file); 516 CleanupDownloadFiles(file);
517 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition( 517 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition(
518 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW)); 518 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW));
519 519
520 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2)); 520 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2));
521 521
522 CheckDownload(file); 522 CheckDownload(file);
523 } 523 }
524 524
525 } // namespace 525 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698