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

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

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "base/test/test_file_util.h" 9 #include "base/test/test_file_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/browser_window.h" 11 #include "chrome/browser/browser_window.h"
12 #include "chrome/browser/download/download_item.h" 12 #include "chrome/browser/download/download_item.h"
13 #include "chrome/browser/download/download_manager.h" 13 #include "chrome/browser/download/download_manager.h"
14 #include "chrome/browser/download/download_prefs.h" 14 #include "chrome/browser/download/download_prefs.h"
15 #include "chrome/browser/download/download_shelf.h" 15 #include "chrome/browser/download/download_shelf.h"
16 #include "chrome/browser/net/url_request_mock_http_job.h" 16 #include "chrome/browser/net/url_request_mock_http_job.h"
17 #include "chrome/browser/net/url_request_slow_download_job.h" 17 #include "chrome/browser/net/url_request_slow_download_job.h"
18 #include "chrome/browser/prefs/pref_service.h" 18 #include "chrome/browser/prefs/pref_service.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/browser_list.h" 21 #include "chrome/browser/ui/browser_list.h"
22 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/page_transition_types.h"
25 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
26 #include "chrome/test/in_process_browser_test.h" 25 #include "chrome/test/in_process_browser_test.h"
27 #include "chrome/test/ui_test_utils.h" 26 #include "chrome/test/ui_test_utils.h"
27 #include "content/common/page_transition_types.h"
28 #include "net/base/net_util.h" 28 #include "net/base/net_util.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace { 31 namespace {
32 32
33 // Variation of DownloadsCompleteObserver from ui_test_utils.cc; the 33 // Variation of DownloadsCompleteObserver from ui_test_utils.cc; the
34 // specifically targeted download tests need finer granularity on waiting. 34 // specifically targeted download tests need finer granularity on waiting.
35 // Construction of this class defines a system state, based on some number 35 // Construction of this class defines a system state, based on some number
36 // of downloads being seen in a particular state + other events that 36 // of downloads being seen in a particular state + other events that
37 // may occur in the download system. That state will be recorded if it 37 // may occur in the download system. That state will be recorded if it
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 #else 941 #else
942 // Otherwise, the download shelf should not be visible in the 942 // Otherwise, the download shelf should not be visible in the
943 // remaining window. 943 // remaining window.
944 EXPECT_FALSE(IsDownloadUIVisible(browser())); 944 EXPECT_FALSE(IsDownloadUIVisible(browser()));
945 #endif 945 #endif
946 946
947 CheckDownload(browser(), file, file); 947 CheckDownload(browser(), file, file);
948 } 948 }
949 949
950 } // namespace 950 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/crash_recovery_browsertest.cc ('k') | chrome/browser/extensions/extension_crash_recovery_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698