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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/prefs/pref_registry_simple.h" | |
9 #include "base/prefs/scoped_user_pref_update.h" | |
10 #include "base/prefs/testing_pref_service.h" | |
11 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "components/prefs/pref_registry_simple.h" |
| 10 #include "components/prefs/scoped_user_pref_update.h" |
| 11 #include "components/prefs/testing_pref_service.h" |
12 #include "components/signin/core/browser/account_fetcher_service.h" | 12 #include "components/signin/core/browser/account_fetcher_service.h" |
13 #include "components/signin/core/browser/account_info.h" | 13 #include "components/signin/core/browser/account_info.h" |
14 #include "components/signin/core/browser/account_tracker_service.h" | 14 #include "components/signin/core/browser/account_tracker_service.h" |
15 #include "components/signin/core/browser/fake_account_fetcher_service.h" | 15 #include "components/signin/core/browser/fake_account_fetcher_service.h" |
16 #include "components/signin/core/browser/test_signin_client.h" | 16 #include "components/signin/core/browser/test_signin_client.h" |
17 #include "components/signin/core/common/signin_pref_names.h" | 17 #include "components/signin/core/common/signin_pref_names.h" |
18 #include "google_apis/gaia/fake_oauth2_token_service.h" | 18 #include "google_apis/gaia/fake_oauth2_token_service.h" |
19 #include "google_apis/gaia/gaia_oauth_client.h" | 19 #include "google_apis/gaia/gaia_oauth_client.h" |
20 #include "net/http/http_status_code.h" | 20 #include "net/http/http_status_code.h" |
21 #include "net/url_request/test_url_fetcher_factory.h" | 21 #include "net/url_request/test_url_fetcher_factory.h" |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 ASSERT_FALSE(info.is_child_account); | 1206 ASSERT_FALSE(info.is_child_account); |
1207 ASSERT_TRUE(observer.CheckEvents(TrackingEvent(UPDATED, child_id))); | 1207 ASSERT_TRUE(observer.CheckEvents(TrackingEvent(UPDATED, child_id))); |
1208 | 1208 |
1209 SimulateTokenRevoked(child_id); | 1209 SimulateTokenRevoked(child_id); |
1210 ASSERT_TRUE(observer.CheckEvents(TrackingEvent(REMOVED, child_id))); | 1210 ASSERT_TRUE(observer.CheckEvents(TrackingEvent(REMOVED, child_id))); |
1211 | 1211 |
1212 tracker.RemoveObserver(&observer); | 1212 tracker.RemoveObserver(&observer); |
1213 fetcher.Shutdown(); | 1213 fetcher.Shutdown(); |
1214 tracker.Shutdown(); | 1214 tracker.Shutdown(); |
1215 } | 1215 } |
OLD | NEW |