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

Unified Diff: chrome/browser/sessions/session_service_test_helper.cc

Issue 22363005: Switch BaseSessionService to use SequencedWorkerPool instead of FILE thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/sessions/session_service_test_helper.cc
diff --git a/chrome/browser/sessions/session_service_test_helper.cc b/chrome/browser/sessions/session_service_test_helper.cc
index 0c55ee8d13ec8d7e1eea5809a3bf0e03ab0970f6..f81769c1db8e3c892b84bf975feacbb1652e4ff1 100644
--- a/chrome/browser/sessions/session_service_test_helper.cc
+++ b/chrome/browser/sessions/session_service_test_helper.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sessions/session_types.h"
#include "components/sessions/serialized_navigation_entry_test_helper.h"
+#include "content/public/browser/browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::Time;
@@ -103,3 +104,10 @@ void SessionServiceTestHelper::AssertSingleWindowWithSingleTab(
SessionBackend* SessionServiceTestHelper::backend() {
return service_->backend();
}
+
+void SessionServiceTestHelper::SetService(SessionService* service) {
+ service_.reset(service);
+ // Execute IO tasks posted by the SessionService.
+ content::BrowserThread::GetBlockingPool()->FlushForTesting();
+}
+

Powered by Google App Engine
This is Rietveld 408576698