OLD | NEW |
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/fake_account_tracker_service.h" | 5 #include "chrome/browser/signin/fake_account_tracker_service.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 9 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 void FakeAccountTrackerService::FakeUserInfoFetchSuccess( | 33 void FakeAccountTrackerService::FakeUserInfoFetchSuccess( |
34 const std::string& account_id, | 34 const std::string& account_id, |
35 const std::string& email, | 35 const std::string& email, |
36 const std::string& gaia, | 36 const std::string& gaia, |
37 const std::string& hosted_domain) { | 37 const std::string& hosted_domain) { |
38 base::DictionaryValue user_info; | 38 base::DictionaryValue user_info; |
39 user_info.SetString("id", gaia); | 39 user_info.SetString("id", gaia); |
40 user_info.SetString("email", email); | 40 user_info.SetString("email", email); |
41 user_info.SetString("hd", hosted_domain); | 41 user_info.SetString("hd", hosted_domain); |
42 SetAccountStateFromUserInfo(account_id, &user_info); | 42 std::vector<std::string> service_flags; |
| 43 SetAccountStateFromUserInfo(account_id, &user_info, &service_flags); |
43 } | 44 } |
44 | 45 |
45 void FakeAccountTrackerService::SendRefreshTokenAnnotationRequest( | 46 void FakeAccountTrackerService::SendRefreshTokenAnnotationRequest( |
46 const std::string& account_id) { | 47 const std::string& account_id) { |
47 // In tests, don't do actual network fetch. | 48 // In tests, don't do actual network fetch. |
48 } | 49 } |
OLD | NEW |