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

Side by Side Diff: components/signin/ios/browser/account_consistency_service_unittest.mm

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back 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 | « no previous file | components/translate/ios/browser/js_translate_manager_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/signin/ios/browser/account_consistency_service.h" 5 #include "components/signin/ios/browser/account_consistency_service.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #import "base/mac/scoped_nsobject.h" 11 #import "base/mac/scoped_nsobject.h"
12 #include "components/signin/core/browser/account_reconcilor.h" 12 #include "components/signin/core/browser/account_reconcilor.h"
13 #include "components/signin/core/browser/account_tracker_service.h" 13 #include "components/signin/core/browser/account_tracker_service.h"
14 #include "components/signin/core/browser/fake_signin_manager.h" 14 #include "components/signin/core/browser/fake_signin_manager.h"
15 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 15 #include "components/signin/core/browser/gaia_cookie_manager_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 "components/sync_preferences/testing_pref_service_syncable.h" 18 #include "components/sync_preferences/testing_pref_service_syncable.h"
19 #include "google_apis/gaia/gaia_constants.h" 19 #include "google_apis/gaia/gaia_constants.h"
20 #include "ios/web/public/test/test_browser_state.h" 20 #include "ios/web/public/test/fakes/test_browser_state.h"
21 #include "ios/web/public/test/test_web_state.h" 21 #import "ios/web/public/test/fakes/test_web_state.h"
22 #include "ios/web/public/test/test_web_thread_bundle.h" 22 #include "ios/web/public/test/test_web_thread_bundle.h"
23 #include "ios/web/public/web_state/web_state_policy_decider.h" 23 #include "ios/web/public/web_state/web_state_policy_decider.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "testing/platform_test.h" 26 #include "testing/platform_test.h"
27 #include "third_party/ocmock/OCMock/OCMock.h" 27 #include "third_party/ocmock/OCMock/OCMock.h"
28 #include "third_party/ocmock/gtest_support.h" 28 #include "third_party/ocmock/gtest_support.h"
29 29
30 namespace { 30 namespace {
31 // URL of the Google domain where the CHROME_CONNECTED cookie is set/removed. 31 // URL of the Google domain where the CHROME_CONNECTED cookie is set/removed.
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // Tests that main domains are added to the internal map when cookies are set in 439 // Tests that main domains are added to the internal map when cookies are set in
440 // reaction to signin. 440 // reaction to signin.
441 TEST_F(AccountConsistencyServiceTest, SigninAddCookieOnMainDomains) { 441 TEST_F(AccountConsistencyServiceTest, SigninAddCookieOnMainDomains) {
442 AddPageLoadedExpectation(kGoogleUrl, true /* continue_navigation */); 442 AddPageLoadedExpectation(kGoogleUrl, true /* continue_navigation */);
443 AddPageLoadedExpectation(kYoutubeUrl, true /* continue_navigation */); 443 AddPageLoadedExpectation(kYoutubeUrl, true /* continue_navigation */);
444 SignIn(); 444 SignIn();
445 445
446 CheckDomainHasCookie(kGoogleDomain); 446 CheckDomainHasCookie(kGoogleDomain);
447 CheckDomainHasCookie(kYoutubeDomain); 447 CheckDomainHasCookie(kYoutubeDomain);
448 } 448 }
OLDNEW
« no previous file with comments | « no previous file | components/translate/ios/browser/js_translate_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698