OLD | NEW |
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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/prefs/pref_service.h" | |
10 #include "build/build_config.h" | 9 #include "build/build_config.h" |
11 #include "chrome/browser/download/download_prefs.h" | 10 #include "chrome/browser/download/download_prefs.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 11 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/extensions/api/streams_private.h" | 15 #include "chrome/common/extensions/api/streams_private.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/base/test_switches.h" | 17 #include "chrome/test/base/test_switches.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 18 #include "chrome/test/base/ui_test_utils.h" |
| 19 #include "components/prefs/pref_service.h" |
20 #include "content/public/browser/download_item.h" | 20 #include "content/public/browser/download_item.h" |
21 #include "content/public/browser/download_manager.h" | 21 #include "content/public/browser/download_manager.h" |
22 #include "content/public/browser/render_process_host.h" | 22 #include "content/public/browser/render_process_host.h" |
23 #include "content/public/browser/resource_controller.h" | 23 #include "content/public/browser/resource_controller.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
25 #include "content/public/test/download_test_observer.h" | 25 #include "content/public/test/download_test_observer.h" |
26 #include "extensions/browser/event_router.h" | 26 #include "extensions/browser/event_router.h" |
27 #include "extensions/browser/extension_system.h" | 27 #include "extensions/browser/extension_system.h" |
28 #include "extensions/common/manifest_handlers/mime_types_handler.h" | 28 #include "extensions/common/manifest_handlers/mime_types_handler.h" |
29 #include "extensions/test/result_catcher.h" | 29 #include "extensions/test/result_catcher.h" |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 base::MessageLoop::current()->RunUntilIdle(); | 483 base::MessageLoop::current()->RunUntilIdle(); |
484 EXPECT_TRUE(catcher.GetNextResult()); | 484 EXPECT_TRUE(catcher.GetNextResult()); |
485 | 485 |
486 ui_test_utils::NavigateToURL(browser(), | 486 ui_test_utils::NavigateToURL(browser(), |
487 test_server_->GetURL("/abort.rtf")); | 487 test_server_->GetURL("/abort.rtf")); |
488 base::MessageLoop::current()->RunUntilIdle(); | 488 base::MessageLoop::current()->RunUntilIdle(); |
489 EXPECT_TRUE(catcher.GetNextResult()); | 489 EXPECT_TRUE(catcher.GetNextResult()); |
490 } | 490 } |
491 | 491 |
492 } // namespace | 492 } // namespace |
OLD | NEW |