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 "components/signin/core/browser/gaia_cookie_manager_service.h" | 5 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/test/histogram_tester.h" | 18 #include "base/test/histogram_tester.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "components/prefs/pref_registry_simple.h" | 20 #include "components/prefs/pref_registry_simple.h" |
21 #include "components/prefs/testing_pref_service.h" | 21 #include "components/prefs/testing_pref_service.h" |
22 #include "components/signin/core/browser/account_tracker_service.h" | 22 #include "components/signin/core/browser/account_tracker_service.h" |
23 #include "components/signin/core/browser/test_signin_client.h" | 23 #include "components/signin/core/browser/test_signin_client.h" |
24 #include "components/signin/core/common/signin_pref_names.h" | 24 #include "components/signin/core/common/signin_pref_names.h" |
25 #include "google_apis/gaia/fake_oauth2_token_service.h" | 25 #include "google_apis/gaia/fake_oauth2_token_service.h" |
26 #include "google_apis/gaia/gaia_constants.h" | 26 #include "google_apis/gaia/gaia_constants.h" |
27 #include "google_apis/gaia/gaia_urls.h" | 27 #include "google_apis/gaia/gaia_urls.h" |
28 #include "net/url_request/test_url_fetcher_factory.h" | 28 #include "net/url_request/test_url_fetcher_factory.h" |
29 #include "net/url_request/url_request_test_util.h" | 29 #include "net/url_request/url_request_test_util.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 | 706 |
707 helper.external_cc_result_fetcher_for_testing()->Start(); | 707 helper.external_cc_result_fetcher_for_testing()->Start(); |
708 | 708 |
709 EXPECT_CALL(helper, StartFetchingUbertoken()); | 709 EXPECT_CALL(helper, StartFetchingUbertoken()); |
710 helper.AddAccountToCookie("acc2@gmail.com"); | 710 helper.AddAccountToCookie("acc2@gmail.com"); |
711 // There is already a ExternalCCResultFetch underway. This will trigger | 711 // There is already a ExternalCCResultFetch underway. This will trigger |
712 // StartFetchingMergeSession. | 712 // StartFetchingMergeSession. |
713 EXPECT_CALL(helper, StartFetchingMergeSession()); | 713 EXPECT_CALL(helper, StartFetchingMergeSession()); |
714 SimulateUbertokenSuccess(&helper, "token3"); | 714 SimulateUbertokenSuccess(&helper, "token3"); |
715 } | 715 } |
OLD | NEW |