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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_resource_throttle_browsertest.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/prefs/pref_service.h"
6 #include "chrome/browser/chromeos/extensions/file_browser_handler.h" 7 #include "chrome/browser/chromeos/extensions/file_browser_handler.h"
7 #include "chrome/browser/chromeos/extensions/file_browser_resource_throttle.h" 8 #include "chrome/browser/chromeos/extensions/file_browser_resource_throttle.h"
8 #include "chrome/browser/download/download_prefs.h" 9 #include "chrome/browser/download/download_prefs.h"
9 #include "chrome/browser/extensions/event_router.h" 10 #include "chrome/browser/extensions/event_router.h"
10 #include "chrome/browser/extensions/extension_apitest.h" 11 #include "chrome/browser/extensions/extension_apitest.h"
11 #include "chrome/browser/extensions/extension_info_map.h" 12 #include "chrome/browser/extensions/extension_info_map.h"
12 #include "chrome/browser/extensions/extension_system.h" 13 #include "chrome/browser/extensions/extension_system.h"
13 #include "chrome/browser/google_apis/test_server/http_request.h" 14 #include "chrome/browser/google_apis/test_server/http_request.h"
14 #include "chrome/browser/google_apis/test_server/http_response.h" 15 #include "chrome/browser/google_apis/test_server/http_response.h"
15 #include "chrome/browser/google_apis/test_server/http_server.h" 16 #include "chrome/browser/google_apis/test_server/http_server.h"
16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" 18 #include "chrome/browser/ui/tabs/tab_strip_model.h"
19 #include "chrome/common/pref_names.cc" 19 #include "chrome/common/pref_names.cc"
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"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // The test extension should not receive any events by now. Send it an event 390 // The test extension should not receive any events by now. Send it an event
391 // with MIME type "test/done", so it stops waiting for the events. (If there 391 // with MIME type "test/done", so it stops waiting for the events. (If there
392 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will 392 // was an event with MIME type 'plain/text', |catcher.GetNextResult()| will
393 // fail regardless of the sent event; chrome.test.notifySuccess will not be 393 // fail regardless of the sent event; chrome.test.notifySuccess will not be
394 // called by the extension). 394 // called by the extension).
395 SendDoneEvent(); 395 SendDoneEvent();
396 EXPECT_TRUE(catcher.GetNextResult()); 396 EXPECT_TRUE(catcher.GetNextResult());
397 } 397 }
398 398
399 } // namespace 399 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698