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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 23767004: Revert "Handling of multiple concurrent requests from different clients in OAuth2TokenService" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | chrome/browser/signin/profile_oauth2_token_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
index e8e443a1de07249b9faa9211b8dcd982f71ea887..8da3550ea65d9f0c29e172360facefadb042db20 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -32,7 +32,6 @@
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/google_service_auth_error.h"
-#include "google_apis/gaia/oauth2_access_token_fetcher.h"
#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_context_getter.h"
@@ -143,8 +142,6 @@ class FakeAndroidProfileOAuth2TokenService
#endif
-} // namespace
-
class UserPolicySigninServiceTest : public testing::Test {
public:
UserPolicySigninServiceTest()
@@ -222,7 +219,6 @@ class UserPolicySigninServiceTest : public testing::Test {
testing_browser_process->SetBrowserPolicyConnector(NULL);
base::RunLoop run_loop;
run_loop.RunUntilIdle();
- ResetLastFetcherId();
}
#if defined(OS_ANDROID)
@@ -352,10 +348,6 @@ class UserPolicySigninServiceTest : public testing::Test {
Mock::VerifyAndClearExpectations(this);
}
- void ResetLastFetcherId() {
- OAuth2AccessTokenFetcher::ResetLastFetcherIdForTest();
- }
-
scoped_ptr<TestingProfile> profile_;
// Weak pointer to a MockUserCloudPolicyStore - lifetime is managed by the
// UserCloudPolicyManager.
@@ -794,7 +786,6 @@ TEST_F(UserPolicySigninServiceTest, SignOutThenSignInAgain) {
ASSERT_FALSE(manager_->core()->service());
// Now sign in again.
- ResetLastFetcherId();
ASSERT_NO_FATAL_FAILURE(TestSuccessfulSignin());
}
@@ -852,4 +843,6 @@ TEST_F(UserPolicySigninServiceTest, PolicyFetchFailureDisableManagement) {
#endif
}
+} // namespace
+
} // namespace policy
« no previous file with comments | « no previous file | chrome/browser/signin/profile_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698