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

Unified Diff: extensions/browser/warning_service_unittest.cc

Issue 2915523002: Replace deprecated base::NonThreadSafe in extensions in favor of SequenceChecker. (Closed)
Patch Set: Add TestBrowserThreadBundle Created 3 years, 7 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
« no previous file with comments | « extensions/browser/warning_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/warning_service_unittest.cc
diff --git a/extensions/browser/warning_service_unittest.cc b/extensions/browser/warning_service_unittest.cc
index 83a3ea0bed86103c8a04c1f669752d0b72c45d34..96b6c5d3c997b583d1bdce54cf54d20751d176d7 100644
--- a/extensions/browser/warning_service_unittest.cc
+++ b/extensions/browser/warning_service_unittest.cc
@@ -5,6 +5,7 @@
#include "extensions/browser/warning_service.h"
#include "content/public/test/test_browser_context.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/browser/extensions_test.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -45,6 +46,7 @@ const Warning::WarningType warning_2 = Warning::kNetworkConflict;
// Check that inserting a warning triggers notifications, whereas inserting
// the same warning again is silent.
TEST_F(WarningServiceTest, SetWarning) {
+ content::TestBrowserThreadBundle thread_bundle_;
content::TestBrowserContext browser_context;
TestWarningService warning_service(&browser_context);
MockObserver observer;
@@ -68,6 +70,7 @@ TEST_F(WarningServiceTest, SetWarning) {
// Check that ClearWarnings deletes exactly the specified warnings and
// triggers notifications where appropriate.
TEST_F(WarningServiceTest, ClearWarnings) {
+ content::TestBrowserThreadBundle thread_bundle_;
content::TestBrowserContext browser_context;
TestWarningService warning_service(&browser_context);
MockObserver observer;
« no previous file with comments | « extensions/browser/warning_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698