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

Unified Diff: net/dns/address_sorter_unittest.cc

Issue 2607283002: Use TaskScheduler instead of WorkerPool in address_sorter_win.cc. (Closed)
Patch Set: Add ScopedTaskScheduler. Created 3 years, 11 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 | « no previous file | net/dns/address_sorter_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/address_sorter_unittest.cc
diff --git a/net/dns/address_sorter_unittest.cc b/net/dns/address_sorter_unittest.cc
index 6c023997a33404bf905237837672e2ab83a9d049..b9069df0c80e16eae98b9cdb7e04e0365d8da7d2 100644
--- a/net/dns/address_sorter_unittest.cc
+++ b/net/dns/address_sorter_unittest.cc
@@ -10,6 +10,8 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "base/message_loop/message_loop.h"
+#include "base/test/scoped_task_scheduler.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
#include "net/base/test_completion_callback.h"
@@ -38,6 +40,8 @@ void OnSortComplete(AddressList* result_buf,
}
TEST(AddressSorterTest, Sort) {
+ base::test::ScopedTaskScheduler scoped_task_scheduler(
+ base::MessageLoop::current());
int expected_result = OK;
#if defined(OS_WIN)
EnsureWinsockInit();
« no previous file with comments | « no previous file | net/dns/address_sorter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698