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

Unified Diff: chromeos/network/network_connection_handler_unittest.cc

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Addressed comments - more DCHECKs, use PostTask..WithReply in client_cert_resolver.cc. Created 3 years, 8 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 | « chromeos/network/network_connection_handler.cc ('k') | chromeos/network/onc/onc_validator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_connection_handler_unittest.cc
diff --git a/chromeos/network/network_connection_handler_unittest.cc b/chromeos/network/network_connection_handler_unittest.cc
index ffa99d93e666b7b1177fca6846b5ebf73016a16d..f8bd289d5c396b91c6fec08d04910ecc2c06586a 100644
--- a/chromeos/network/network_connection_handler_unittest.cc
+++ b/chromeos/network/network_connection_handler_unittest.cc
@@ -15,6 +15,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
+#include "base/test/scoped_task_scheduler.h"
#include "chromeos/cert_loader.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/network/managed_network_configuration_handler_impl.h"
@@ -86,7 +87,7 @@ class TestNetworkConnectionObserver : public NetworkConnectionObserver {
class NetworkConnectionHandlerTest : public NetworkStateTest {
public:
- NetworkConnectionHandlerTest() {}
+ NetworkConnectionHandlerTest() : scoped_task_scheduler_(&message_loop_) {}
~NetworkConnectionHandlerTest() override {}
@@ -264,6 +265,8 @@ class NetworkConnectionHandlerTest : public NetworkStateTest {
std::string result_;
private:
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
+
DISALLOW_COPY_AND_ASSIGN(NetworkConnectionHandlerTest);
};
« no previous file with comments | « chromeos/network/network_connection_handler.cc ('k') | chromeos/network/onc/onc_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698