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

Unified Diff: net/quic/chromium/quic_stream_factory_test.cc

Issue 2602243002: Use TaskScheduler instead of WorkerPool in multi_threaded_cert_verifier.cc. (Closed)
Patch Set: self-review Created 3 years, 10 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: net/quic/chromium/quic_stream_factory_test.cc
diff --git a/net/quic/chromium/quic_stream_factory_test.cc b/net/quic/chromium/quic_stream_factory_test.cc
index e40a2bd2f7a6402dc1fc630f582114de44b0536a..5de0b7b79e1c02cf1ce45def32ac6c13d68a1f48 100644
--- a/net/quic/chromium/quic_stream_factory_test.cc
+++ b/net/quic/chromium/quic_stream_factory_test.cc
@@ -11,8 +11,10 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/memory/ptr_util.h"
+#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
+#include "base/test/scoped_task_scheduler.h"
#include "net/base/test_proxy_delegate.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/ct_policy_enforcer.h"
@@ -4971,6 +4973,9 @@ TEST_P(QuicStreamFactoryTest, MaybeInitializeAlternativeProxyServer) {
}
TEST_P(QuicStreamFactoryTest, StartCertVerifyJob) {
+ base::test::ScopedTaskScheduler scoped_task_scheduler(
eroman 2017/02/07 22:45:45 What is the recipe for including ScopedTaskSchedul
gab 2017/02/08 16:01:42 We could (although we'd need a way to ask for a Sc
+ base::MessageLoop::current());
+
Initialize();
MockQuicData socket_data;

Powered by Google App Engine
This is Rietveld 408576698