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

Unified Diff: chromeos/network/network_cert_migrator_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_cert_migrator.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_cert_migrator_unittest.cc
diff --git a/chromeos/network/network_cert_migrator_unittest.cc b/chromeos/network/network_cert_migrator_unittest.cc
index d57a4aed1c7cbaf745872d4a3903f4155a362b52..cab86e6291c1713ba8751aa9694b788b45948d9c 100644
--- a/chromeos/network/network_cert_migrator_unittest.cc
+++ b/chromeos/network/network_cert_migrator_unittest.cc
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
+#include "base/test/scoped_task_scheduler.h"
#include "chromeos/cert_loader.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/shill_profile_client.h"
@@ -39,7 +40,8 @@ const char* kProfile = "/profile/profile1";
class NetworkCertMigratorTest : public testing::Test {
public:
- NetworkCertMigratorTest() : service_test_(nullptr) {}
+ NetworkCertMigratorTest()
+ : service_test_(nullptr), scoped_task_scheduler_(&message_loop_) {}
~NetworkCertMigratorTest() override {}
void SetUp() override {
@@ -190,6 +192,7 @@ class NetworkCertMigratorTest : public testing::Test {
base::MessageLoop message_loop_;
private:
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
std::unique_ptr<NetworkStateHandler> network_state_handler_;
std::unique_ptr<NetworkCertMigrator> network_cert_migrator_;
crypto::ScopedTestNSSDB test_nssdb_;
« no previous file with comments | « chromeos/network/network_cert_migrator.cc ('k') | chromeos/network/network_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698