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

Side by Side Diff: google_apis/gaia/oauth2_token_service_request_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/gaia/oauth2_token_service_request.h" 5 #include "google_apis/gaia/oauth2_token_service_request.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 14 #include "base/run_loop.h"
14 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
15 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
16 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
17 #include "google_apis/gaia/fake_oauth2_token_service.h" 18 #include "google_apis/gaia/fake_oauth2_token_service.h"
18 #include "google_apis/gaia/google_service_auth_error.h" 19 #include "google_apis/gaia/google_service_auth_error.h"
19 #include "google_apis/gaia/oauth2_token_service.h" 20 #include "google_apis/gaia/oauth2_token_service.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
22 namespace { 23 namespace {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 OAuth2TokenServiceRequest::InvalidateToken( 263 OAuth2TokenServiceRequest::InvalidateToken(
263 provider_.get(), kAccountId, scopes_, kAccessToken); 264 provider_.get(), kAccountId, scopes_, kAccessToken);
264 base::RunLoop().RunUntilIdle(); 265 base::RunLoop().RunUntilIdle();
265 EXPECT_EQ(0, consumer_.num_get_token_success_); 266 EXPECT_EQ(0, consumer_.num_get_token_success_);
266 EXPECT_EQ(0, consumer_.num_get_token_failure_); 267 EXPECT_EQ(0, consumer_.num_get_token_failure_);
267 EXPECT_EQ(kAccessToken, oauth2_service_->last_token_invalidated()); 268 EXPECT_EQ(kAccessToken, oauth2_service_->last_token_invalidated());
268 EXPECT_EQ(1, oauth2_service_->num_invalidate_token()); 269 EXPECT_EQ(1, oauth2_service_->num_invalidate_token());
269 } 270 }
270 271
271 } // namespace 272 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698