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

Unified Diff: ios/web/test/test_web_thread_bundle.cc

Issue 2887463002: Remove TestWebThreadBundle::REAL_TASK_SCHEDULER. (Closed)
Patch Set: 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 | « ios/web/public/test/test_web_thread_bundle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/test_web_thread_bundle.cc
diff --git a/ios/web/test/test_web_thread_bundle.cc b/ios/web/test/test_web_thread_bundle.cc
index 14eb65608d7ef4ecd7759f744806eec77e5f82fa..e6d776e4a977dd10b9bb05035681c117c42ea48f 100644
--- a/ios/web/test/test_web_thread_bundle.cc
+++ b/ios/web/test/test_web_thread_bundle.cc
@@ -8,7 +8,6 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/scoped_async_task_scheduler.h"
-#include "base/test/scoped_task_scheduler.h"
#include "ios/web/public/test/test_web_thread.h"
#include "ios/web/web_thread_impl.h"
@@ -53,7 +52,6 @@ TestWebThreadBundle::~TestWebThreadBundle() {
base::RunLoop().RunUntilIdle();
scoped_async_task_scheduler_.reset();
- scoped_task_scheduler_.reset();
}
void TestWebThreadBundle::Init(int options) {
@@ -65,13 +63,8 @@ void TestWebThreadBundle::Init(int options) {
ui_thread_.reset(new TestWebThread(WebThread::UI, message_loop_.get()));
- if (options & REAL_TASK_SCHEDULER) {
- scoped_async_task_scheduler_ =
- base::MakeUnique<base::test::ScopedAsyncTaskScheduler>();
- } else {
- scoped_task_scheduler_ =
- base::MakeUnique<base::test::ScopedTaskScheduler>(message_loop_.get());
- }
+ scoped_async_task_scheduler_ =
+ base::MakeUnique<base::test::ScopedAsyncTaskScheduler>();
if (options & TestWebThreadBundle::REAL_DB_THREAD) {
db_thread_.reset(new TestWebThread(WebThread::DB));
« no previous file with comments | « ios/web/public/test/test_web_thread_bundle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698