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

Unified Diff: chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc

Issue 2533473002: Use TaskScheduler instead of WorkerPool in client_cert_store_chromeos.cc. (Closed)
Patch Set: add withfileio() Created 4 years 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 | « chrome/browser/chromeos/net/client_cert_store_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc b/chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc
index b6fd2b8a432403ed57451ee7f0a33dfefdb94924..bbd797334f501ddfd0b6bd50f4eba0d55b8f7067 100644
--- a/chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/net/client_cert_store_chromeos_unittest.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/chromeos/net/client_cert_store_chromeos.h"
-#include <memory>
#include <string>
#include "base/callback.h"
@@ -15,6 +14,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
+#include "base/test/scoped_task_scheduler.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/certificate_provider/certificate_provider.h"
#include "crypto/scoped_test_nss_db.h"
@@ -78,7 +78,7 @@ class TestCertFilter : public ClientCertStoreChromeOS::CertFilter {
class ClientCertStoreChromeOSTest : public ::testing::Test {
public:
- ClientCertStoreChromeOSTest() : message_loop_(new base::MessageLoopForIO()) {}
+ ClientCertStoreChromeOSTest() {}
scoped_refptr<net::X509Certificate> ImportCertToSlot(
const std::string& cert_filename,
@@ -89,7 +89,8 @@ class ClientCertStoreChromeOSTest : public ::testing::Test {
}
private:
- std::unique_ptr<base::MessageLoop> message_loop_;
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
+ base::MessageLoopForIO message_loop_;
};
// Ensure that cert requests, that are started before the filter is initialized,
« no previous file with comments | « chrome/browser/chromeos/net/client_cert_store_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698