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

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

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/download/download_item_model.h" 31 #include "chrome/browser/download/download_item_model.h"
32 #include "chrome/browser/download/download_prefs.h" 32 #include "chrome/browser/download/download_prefs.h"
33 #include "chrome/browser/download/download_request_limiter.h" 33 #include "chrome/browser/download/download_request_limiter.h"
34 #include "chrome/browser/download/download_service.h" 34 #include "chrome/browser/download/download_service.h"
35 #include "chrome/browser/download/download_service_factory.h" 35 #include "chrome/browser/download/download_service_factory.h"
36 #include "chrome/browser/download/download_shelf.h" 36 #include "chrome/browser/download/download_shelf.h"
37 #include "chrome/browser/download/download_target_determiner.h" 37 #include "chrome/browser/download/download_target_determiner.h"
38 #include "chrome/browser/download/download_test_file_activity_observer.h" 38 #include "chrome/browser/download/download_test_file_activity_observer.h"
39 #include "chrome/browser/extensions/extension_install_prompt.h" 39 #include "chrome/browser/extensions/extension_install_prompt.h"
40 #include "chrome/browser/extensions/extension_service.h" 40 #include "chrome/browser/extensions/extension_service.h"
41 #include "chrome/browser/extensions/extension_system.h"
42 #include "chrome/browser/history/download_row.h" 41 #include "chrome/browser/history/download_row.h"
43 #include "chrome/browser/history/history_service.h" 42 #include "chrome/browser/history/history_service.h"
44 #include "chrome/browser/history/history_service_factory.h" 43 #include "chrome/browser/history/history_service_factory.h"
45 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 44 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
46 #include "chrome/browser/infobars/infobar.h" 45 #include "chrome/browser/infobars/infobar.h"
47 #include "chrome/browser/infobars/infobar_service.h" 46 #include "chrome/browser/infobars/infobar_service.h"
48 #include "chrome/browser/net/url_request_mock_util.h" 47 #include "chrome/browser/net/url_request_mock_util.h"
49 #include "chrome/browser/profiles/profile.h" 48 #include "chrome/browser/profiles/profile.h"
50 #include "chrome/browser/tab_contents/render_view_context_menu.h" 49 #include "chrome/browser/tab_contents/render_view_context_menu.h"
51 #include "chrome/browser/ui/browser.h" 50 #include "chrome/browser/ui/browser.h"
(...skipping 22 matching lines...) Expand all
74 #include "content/public/browser/web_contents.h" 73 #include "content/public/browser/web_contents.h"
75 #include "content/public/common/content_switches.h" 74 #include "content/public/common/content_switches.h"
76 #include "content/public/common/context_menu_params.h" 75 #include "content/public/common/context_menu_params.h"
77 #include "content/public/common/page_transition_types.h" 76 #include "content/public/common/page_transition_types.h"
78 #include "content/public/test/browser_test_utils.h" 77 #include "content/public/test/browser_test_utils.h"
79 #include "content/public/test/download_test_observer.h" 78 #include "content/public/test/download_test_observer.h"
80 #include "content/public/test/test_file_error_injector.h" 79 #include "content/public/test/test_file_error_injector.h"
81 #include "content/public/test/test_navigation_observer.h" 80 #include "content/public/test/test_navigation_observer.h"
82 #include "content/test/net/url_request_mock_http_job.h" 81 #include "content/test/net/url_request_mock_http_job.h"
83 #include "content/test/net/url_request_slow_download_job.h" 82 #include "content/test/net/url_request_slow_download_job.h"
83 #include "extensions/browser/extension_system.h"
84 #include "extensions/common/feature_switch.h" 84 #include "extensions/common/feature_switch.h"
85 #include "grit/generated_resources.h" 85 #include "grit/generated_resources.h"
86 #include "net/base/net_util.h" 86 #include "net/base/net_util.h"
87 #include "net/test/spawned_test_server/spawned_test_server.h" 87 #include "net/test/spawned_test_server/spawned_test_server.h"
88 #include "testing/gtest/include/gtest/gtest.h" 88 #include "testing/gtest/include/gtest/gtest.h"
89 #include "ui/base/l10n/l10n_util.h" 89 #include "ui/base/l10n/l10n_util.h"
90 90
91 using content::BrowserContext; 91 using content::BrowserContext;
92 using content::BrowserThread; 92 using content::BrowserThread;
93 using content::DownloadItem; 93 using content::DownloadItem;
(...skipping 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 3242
3243 // No errors this time. The download should complete successfully. 3243 // No errors this time. The download should complete successfully.
3244 EXPECT_FALSE(completion_observer->IsFinished()); 3244 EXPECT_FALSE(completion_observer->IsFinished());
3245 completion_observer->StartObserving(); 3245 completion_observer->StartObserving();
3246 download->Resume(); 3246 download->Resume();
3247 completion_observer->WaitForFinished(); 3247 completion_observer->WaitForFinished();
3248 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState()); 3248 EXPECT_EQ(DownloadItem::COMPLETE, download->GetState());
3249 3249
3250 EXPECT_FALSE(DidShowFileChooser()); 3250 EXPECT_FALSE(DidShowFileChooser());
3251 } 3251 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | chrome/browser/download/download_crx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698