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

Unified Diff: net/http/transport_security_persister_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 | « net/dns/mdns_client_unittest.cc ('k') | net/test/spawned_test_server/local_test_server_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_persister_unittest.cc
diff --git a/net/http/transport_security_persister_unittest.cc b/net/http/transport_security_persister_unittest.cc
index 5809c92719f223075c1eb6511dc9d4f6fe0ee042..9d93601e950c66bb1777705c4dfb6c33ac40760a 100644
--- a/net/http/transport_security_persister_unittest.cc
+++ b/net/http/transport_security_persister_unittest.cc
@@ -13,6 +13,8 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "net/http/transport_security_state.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -28,14 +30,15 @@ class TransportSecurityPersisterTest : public testing::Test {
}
~TransportSecurityPersisterTest() override {
- base::MessageLoopForIO::current()->RunUntilIdle();
+ EXPECT_TRUE(base::MessageLoopForIO::IsCurrent());
+ base::RunLoop().RunUntilIdle();
}
void SetUp() override {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
+ ASSERT_TRUE(base::MessageLoopForIO::IsCurrent());
persister_.reset(new TransportSecurityPersister(
- &state_, temp_dir_.path(),
- base::MessageLoopForIO::current()->task_runner(), false));
+ &state_, temp_dir_.path(), base::ThreadTaskRunnerHandle::Get(), false));
}
protected:
« no previous file with comments | « net/dns/mdns_client_unittest.cc ('k') | net/test/spawned_test_server/local_test_server_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698