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

Unified Diff: components/certificate_reporting/error_reporter_unittest.cc

Issue 2163223005: Remove //content dependency for tests in certificate_reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove #include Created 4 years, 5 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 | « components/certificate_reporting/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/certificate_reporting/error_reporter_unittest.cc
diff --git a/components/certificate_reporting/error_reporter_unittest.cc b/components/certificate_reporting/error_reporter_unittest.cc
index 91194522ca25864ca42c9712e6fd403d20a34af0..6398c5fc180be55af13e7cda98dd511ba7ddf99e 100644
--- a/components/certificate_reporting/error_reporter_unittest.cc
+++ b/components/certificate_reporting/error_reporter_unittest.cc
@@ -14,10 +14,10 @@
#include "base/bind_helpers.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
+#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/histogram_tester.h"
#include "components/certificate_reporting/encrypted_cert_logger.pb.h"
-#include "content/public/test/test_browser_thread_bundle.h"
#include "crypto/curve25519.h"
#include "net/test/url_request/url_request_failed_job.h"
#include "net/url_request/report_sender.h"
@@ -82,8 +82,7 @@ class TestCertificateReporterNetworkDelegate : public net::NetworkDelegateImpl {
class ErrorReporterTest : public ::testing::Test {
public:
- ErrorReporterTest()
- : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
+ ErrorReporterTest() {
memset(server_private_key_, 1, sizeof(server_private_key_));
crypto::curve25519::ScalarBaseMult(server_private_key_, server_public_key_);
}
@@ -91,7 +90,7 @@ class ErrorReporterTest : public ::testing::Test {
~ErrorReporterTest() override {}
protected:
- content::TestBrowserThreadBundle thread_bundle_;
+ base::MessageLoopForIO loop_;
uint8_t server_public_key_[32];
uint8_t server_private_key_[32];
« no previous file with comments | « components/certificate_reporting/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698