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

Side by Side Diff: components/signin/core/browser/account_tracker_service_unittest.cc

Issue 2136563002: Remove calls to MessageLoop::current() in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore dns_config_service_posix_unittest.cc Created 4 years, 5 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 <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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698