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

Unified Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string 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/extensions/api/identity/gaia_web_auth_flow_unittest.cc
diff --git a/chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc b/chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc
index 5f8ab3e0f9a305a23db48769e0ff74c68351f392..57d3f43b709a255e929ec91843c4ff093f280c95 100644
--- a/chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc
+++ b/chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc
@@ -6,9 +6,8 @@
#include <vector>
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -63,8 +62,7 @@ class MockGaiaWebAuthFlowDelegate : public GaiaWebAuthFlow::Delegate {
class IdentityGaiaWebAuthFlowTest : public testing::Test {
public:
IdentityGaiaWebAuthFlowTest()
- : ubertoken_error_state_(GoogleServiceAuthError::NONE),
- fake_ui_thread_(content::BrowserThread::UI, &message_loop_) {}
+ : ubertoken_error_state_(GoogleServiceAuthError::NONE) {}
virtual void TearDown() {
testing::Test::TearDown();
@@ -95,8 +93,7 @@ class IdentityGaiaWebAuthFlowTest : public testing::Test {
protected:
testing::StrictMock<MockGaiaWebAuthFlowDelegate> delegate_;
GoogleServiceAuthError::State ubertoken_error_state_;
- base::MessageLoop message_loop_;
- content::TestBrowserThread fake_ui_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
};
TEST_F(IdentityGaiaWebAuthFlowTest, OAuthError) {

Powered by Google App Engine
This is Rietveld 408576698