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

Side by Side Diff: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate_unittest.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 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 "chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h" 5 #include "chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/threading/thread_task_runner_handle.h"
15 #include "build/build_config.h" 16 #include "build/build_config.h"
16 #include "components/os_crypt/os_crypt_mocker.h" 17 #include "components/os_crypt/os_crypt_mocker.h"
17 #include "components/prefs/pref_registry_simple.h" 18 #include "components/prefs/pref_registry_simple.h"
18 #include "components/prefs/scoped_user_pref_update.h" 19 #include "components/prefs/scoped_user_pref_update.h"
19 #include "components/prefs/testing_pref_service.h" 20 #include "components/prefs/testing_pref_service.h"
20 #include "components/signin/core/browser/profile_oauth2_token_service.h" 21 #include "components/signin/core/browser/profile_oauth2_token_service.h"
21 #include "components/signin/core/browser/signin_error_controller.h" 22 #include "components/signin/core/browser/signin_error_controller.h"
22 #include "components/signin/core/browser/test_signin_client.h" 23 #include "components/signin/core/browser/test_signin_client.h"
23 #include "components/signin/core/browser/webdata/token_web_data.h" 24 #include "components/signin/core/browser/webdata/token_web_data.h"
24 #include "components/signin/core/common/profile_management_switches.h" 25 #include "components/signin/core/common/profile_management_switches.h"
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 EXPECT_EQ(1, tokens_loaded_count_); 689 EXPECT_EQ(1, tokens_loaded_count_);
689 EXPECT_EQ(2, token_available_count_); 690 EXPECT_EQ(2, token_available_count_);
690 EXPECT_EQ(0, token_revoked_count_); 691 EXPECT_EQ(0, token_revoked_count_);
691 EXPECT_EQ(1, start_batch_changes_); 692 EXPECT_EQ(1, start_batch_changes_);
692 EXPECT_EQ(1, end_batch_changes_); 693 EXPECT_EQ(1, end_batch_changes_);
693 EXPECT_TRUE( 694 EXPECT_TRUE(
694 oauth2_service_delegate_->RefreshTokenIsAvailable(primary_account)); 695 oauth2_service_delegate_->RefreshTokenIsAvailable(primary_account));
695 EXPECT_TRUE( 696 EXPECT_TRUE(
696 oauth2_service_delegate_->RefreshTokenIsAvailable(secondary_account)); 697 oauth2_service_delegate_->RefreshTokenIsAvailable(secondary_account));
697 } 698 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698