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

Unified Diff: chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-build-error 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
Index: chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc
diff --git a/chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc b/chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc
index 90a7dac037517378b7caf4f14ddde5e9ef156916..8f991c62936734831b36c722da668e890ce24676 100644
--- a/chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc
+++ b/chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/chromeos/attestation/attestation_ca_client.h"
gab 2017/04/25 14:53:15 include fixer should have added a newline below :(
fdoray 2017/04/27 13:12:26 Done.
#include "base/bind.h"
#include "base/command_line.h"
-#include "base/message_loop/message_loop.h"
-#include "chrome/browser/chromeos/attestation/attestation_ca_client.h"
#include "chromeos/chromeos_switches.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
@@ -20,11 +19,7 @@ namespace attestation {
class AttestationCAClientTest : public ::testing::Test {
public:
- AttestationCAClientTest()
- : io_thread_(content::BrowserThread::IO, &message_loop_),
- num_invocations_(0),
- result_(false) {
- }
+ AttestationCAClientTest() : num_invocations_(0), result_(false) {}
~AttestationCAClientTest() override {}
@@ -66,8 +61,7 @@ class AttestationCAClientTest : public ::testing::Test {
fetcher->delegate()->OnURLFetchComplete(fetcher);
}
- base::MessageLoop message_loop_;
- content::TestBrowserThread io_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
net::TestURLFetcherFactory url_fetcher_factory_;
// For use with DataCallback.

Powered by Google App Engine
This is Rietveld 408576698