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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "chrome/browser/download/download_prefs.h" | 7 #include "chrome/browser/download/download_prefs.h" |
8 #include "chrome/browser/extensions/event_router.h" | 8 #include "chrome/browser/extensions/event_router.h" |
9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/extensions/extension_info_map.h" | 10 #include "chrome/browser/extensions/extension_info_map.h" |
11 #include "chrome/browser/extensions/extension_system.h" | 11 #include "chrome/browser/extensions/extension_system.h" |
12 #include "chrome/browser/google_apis/test_server/http_request.h" | 12 #include "chrome/browser/google_apis/test_server/http_request.h" |
13 #include "chrome/browser/google_apis/test_server/http_response.h" | 13 #include "chrome/browser/google_apis/test_server/http_response.h" |
14 #include "chrome/browser/google_apis/test_server/http_server.h" | 14 #include "chrome/browser/google_apis/test_server/http_server.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/common/extensions/mime_types_handler.h" | 18 #include "chrome/common/extensions/mime_types_handler.h" |
19 #include "chrome/common/pref_names.cc" | 19 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
21 #include "content/public/browser/download_item.h" | 21 #include "content/public/browser/download_item.h" |
22 #include "content/public/browser/download_manager.h" | 22 #include "content/public/browser/download_manager.h" |
23 #include "content/public/browser/render_process_host.h" | 23 #include "content/public/browser/render_process_host.h" |
24 #include "content/public/browser/resource_controller.h" | 24 #include "content/public/browser/resource_controller.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "content/public/test/download_test_observer.h" | 26 #include "content/public/test/download_test_observer.h" |
27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
28 | 28 |
29 using content::BrowserContext; | 29 using content::BrowserContext; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // The test extension should not receive any events by now. Send it an event | 303 // The test extension should not receive any events by now. Send it an event |
304 // with MIME type "test/done", so it stops waiting for the events. (If there | 304 // with MIME type "test/done", so it stops waiting for the events. (If there |
305 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will | 305 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will |
306 // fail regardless of the sent event; chrome.test.notifySuccess will not be | 306 // fail regardless of the sent event; chrome.test.notifySuccess will not be |
307 // called by the extension). | 307 // called by the extension). |
308 SendDoneEvent(); | 308 SendDoneEvent(); |
309 EXPECT_TRUE(catcher.GetNextResult()); | 309 EXPECT_TRUE(catcher.GetNextResult()); |
310 } | 310 } |
311 | 311 |
312 } // namespace | 312 } // namespace |
OLD | NEW |