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

Side by Side Diff: ios/chrome/test/app/signin_test_util.mm

Issue 2608733002: Fix include/import in ios/testing and ios/chrome/test (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « ios/chrome/test/app/settings_test_util.mm ('k') | ios/chrome/test/app/sync_test_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/test/app/signin_test_util.h" 5 #include "ios/chrome/test/app/signin_test_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/test/ios/wait_util.h" 9 #import "base/test/ios/wait_util.h"
10 #include "components/prefs/pref_service.h" 10 #include "components/prefs/pref_service.h"
11 #include "components/signin/core/browser/account_tracker_service.h" 11 #include "components/signin/core/browser/account_tracker_service.h"
12 #include "components/signin/core/common/signin_pref_names.h" 12 #include "components/signin/core/common/signin_pref_names.h"
13 #include "google_apis/gaia/gaia_constants.h" 13 #include "google_apis/gaia/gaia_constants.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
15 #include "ios/chrome/browser/signin/account_tracker_service_factory.h" 15 #include "ios/chrome/browser/signin/account_tracker_service_factory.h"
16 #include "ios/chrome/browser/signin/authentication_service.h" 16 #import "ios/chrome/browser/signin/authentication_service.h"
17 #include "ios/chrome/browser/signin/authentication_service_factory.h" 17 #include "ios/chrome/browser/signin/authentication_service_factory.h"
18 #include "ios/chrome/browser/signin/gaia_auth_fetcher_ios.h" 18 #include "ios/chrome/browser/signin/gaia_auth_fetcher_ios.h"
19 #import "ios/chrome/test/app/chrome_test_util.h" 19 #import "ios/chrome/test/app/chrome_test_util.h"
20 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 20 #import "ios/public/provider/chrome/browser/chrome_browser_provider.h"
21 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h" 21 #import "ios/public/provider/chrome/browser/signin/fake_chrome_identity_service. h"
22 #include "net/http/http_status_code.h" 22 #include "net/http/http_status_code.h"
23 #include "net/url_request/test_url_fetcher_factory.h" 23 #include "net/url_request/test_url_fetcher_factory.h"
24 #include "net/url_request/url_fetcher_delegate.h" 24 #include "net/url_request/url_fetcher_delegate.h"
25 #include "net/url_request/url_request_status.h" 25 #include "net/url_request/url_request_status.h"
26 26
27 namespace { 27 namespace {
28 28
29 net::FakeURLFetcherFactory* gFakeURLFetcherFactory = nullptr; 29 net::FakeURLFetcherFactory* gFakeURLFetcherFactory = nullptr;
30 30
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 NSDate* deadline = [NSDate dateWithTimeIntervalSinceNow:10.0]; 161 NSDate* deadline = [NSDate dateWithTimeIntervalSinceNow:10.0];
162 while (identity_service->HasIdentities() && 162 while (identity_service->HasIdentities() &&
163 [[NSDate date] compare:deadline] != NSOrderedDescending) { 163 [[NSDate date] compare:deadline] != NSOrderedDescending) {
164 base::test::ios::SpinRunLoopWithMaxDelay( 164 base::test::ios::SpinRunLoopWithMaxDelay(
165 base::TimeDelta::FromSecondsD(0.01)); 165 base::TimeDelta::FromSecondsD(0.01));
166 } 166 }
167 return !identity_service->HasIdentities(); 167 return !identity_service->HasIdentities();
168 } 168 }
169 169
170 } // namespace chrome_test_util 170 } // namespace chrome_test_util
OLDNEW
« no previous file with comments | « ios/chrome/test/app/settings_test_util.mm ('k') | ios/chrome/test/app/sync_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698