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