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

Unified Diff: chrome/browser/extensions/extension_warning_service_unittest.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_warning_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_warning_service_unittest.cc b/chrome/browser/extensions/extension_warning_service_unittest.cc
index 7ad5b82b9c0459b9461c78687537f05b3d2fbc17..a612d6e7e14811c8df736036720341d5baa37c41 100644
--- a/chrome/browser/extensions/extension_warning_service_unittest.cc
+++ b/chrome/browser/extensions/extension_warning_service_unittest.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/test/base/testing_profile.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -47,6 +48,7 @@ const ExtensionWarning::WarningType warning_2 =
// Check that inserting a warning triggers notifications, whereas inserting
// the same warning again is silent.
TEST(ExtensionWarningServiceTest, SetWarning) {
+ content::TestBrowserThreadBundle thread_bundle;
TestingProfile profile;
TestExtensionWarningService warning_service(&profile);
MockObserver observer;
@@ -69,6 +71,7 @@ TEST(ExtensionWarningServiceTest, SetWarning) {
// Check that ClearWarnings deletes exactly the specified warnings and
// triggers notifications where appropriate.
TEST(ExtensionWarningServiceTest, ClearWarnings) {
+ content::TestBrowserThreadBundle thread_bundle;
TestingProfile profile;
TestExtensionWarningService warning_service(&profile);
MockObserver observer;

Powered by Google App Engine
This is Rietveld 408576698