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

Side by Side Diff: chrome/browser/extensions/api/streams_private/streams_private_apitest.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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/download/download_prefs.h" 8 #include "chrome/browser/download/download_prefs.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/common/extensions/mime_types_handler.h" 13 #include "chrome/common/extensions/mime_types_handler.h"
15 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
16 #include "chrome/test/base/test_switches.h" 15 #include "chrome/test/base/test_switches.h"
17 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
18 #include "content/public/browser/download_item.h" 17 #include "content/public/browser/download_item.h"
19 #include "content/public/browser/download_manager.h" 18 #include "content/public/browser/download_manager.h"
20 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
21 #include "content/public/browser/resource_controller.h" 20 #include "content/public/browser/resource_controller.h"
22 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
23 #include "content/public/test/download_test_observer.h" 22 #include "content/public/test/download_test_observer.h"
24 #include "extensions/browser/event_router.h" 23 #include "extensions/browser/event_router.h"
24 #include "extensions/browser/extension_system.h"
25 #include "net/test/embedded_test_server/embedded_test_server.h" 25 #include "net/test/embedded_test_server/embedded_test_server.h"
26 #include "net/test/embedded_test_server/http_request.h" 26 #include "net/test/embedded_test_server/http_request.h"
27 #include "net/test/embedded_test_server/http_response.h" 27 #include "net/test/embedded_test_server/http_response.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 29
30 using content::BrowserContext; 30 using content::BrowserContext;
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using content::DownloadItem; 32 using content::DownloadItem;
33 using content::DownloadManager; 33 using content::DownloadManager;
34 using content::DownloadUrlParameters; 34 using content::DownloadUrlParameters;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // The test extension should not receive any events by now. Send it an event 312 // The test extension should not receive any events by now. Send it an event
313 // with MIME type "test/done", so it stops waiting for the events. (If there 313 // with MIME type "test/done", so it stops waiting for the events. (If there
314 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will 314 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will
315 // fail regardless of the sent event; chrome.test.notifySuccess will not be 315 // fail regardless of the sent event; chrome.test.notifySuccess will not be
316 // called by the extension). 316 // called by the extension).
317 SendDoneEvent(); 317 SendDoneEvent();
318 EXPECT_TRUE(catcher.GetNextResult()); 318 EXPECT_TRUE(catcher.GetNextResult());
319 } 319 }
320 320
321 } // namespace 321 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698