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

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

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/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) 2006-2008 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 "build/build_config.h"
9 #if defined(OS_WIN)
10 #include <shlwapi.h>
11 #endif
12
13 #include "base/command_line.h" 8 #include "base/command_line.h"
14 #include "base/file_util.h" 9 #include "base/file_util.h"
15 #include "base/path_service.h" 10 #include "base/path_service.h"
16 #include "base/string_util.h" 11 #include "base/string_util.h"
17 #include "base/test/test_file_util.h" 12 #include "base/test/test_file_util.h"
18 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "build/build_config.h"
19 #include "chrome/app/chrome_command_ids.h" 15 #include "chrome/app/chrome_command_ids.h"
20 #include "chrome/browser/download/download_util.h" 16 #include "chrome/browser/download/download_util.h"
21 #include "chrome/browser/net/url_request_mock_http_job.h" 17 #include "chrome/browser/net/url_request_mock_http_job.h"
22 #include "chrome/browser/net/url_request_slow_download_job.h" 18 #include "chrome/browser/net/url_request_slow_download_job.h"
23 #include "chrome/common/chrome_constants.h" 19 #include "chrome/common/chrome_constants.h"
24 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/test/ui/ui_test.h" 21 #include "chrome/test/ui/ui_test.h"
27 #include "chrome/test/automation/tab_proxy.h" 22 #include "chrome/test/automation/tab_proxy.h"
28 #include "chrome/test/automation/browser_proxy.h" 23 #include "chrome/test/automation/browser_proxy.h"
29 #include "net/base/net_util.h" 24 #include "net/base/net_util.h"
30 #include "net/url_request/url_request_unittest.h" 25 #include "net/url_request/url_request_unittest.h"
31 26
27 #if defined(OS_WIN)
28 #include <shlwapi.h>
29 #endif
30
32 namespace { 31 namespace {
33 32
34 const wchar_t kDocRoot[] = L"chrome/test/data"; 33 const wchar_t kDocRoot[] = L"chrome/test/data";
35 34
36 class DownloadTest : public UITest { 35 class DownloadTest : public UITest {
37 protected: 36 protected:
38 DownloadTest() : UITest() {} 37 DownloadTest() : UITest() {}
39 38
40 void CheckDownload(const FilePath& client_filename, 39 void CheckDownload(const FilePath& client_filename,
41 const FilePath& server_filename) { 40 const FilePath& server_filename) {
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 CleanupDownloadFiles(file); 515 CleanupDownloadFiles(file);
517 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition( 516 ASSERT_TRUE(tab_proxy->NavigateToURLAsyncWithDisposition(
518 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW)); 517 URLRequestMockHTTPJob::GetMockUrl(file), NEW_WINDOW));
519 518
520 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2)); 519 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2));
521 520
522 CheckDownload(file); 521 CheckDownload(file);
523 } 522 }
524 523
525 } // namespace 524 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/shown_sections_handler.cc ('k') | chrome/browser/extensions/browser_action_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698