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/test_signin_client.h" | 5 #include "components/signin/core/browser/test_signin_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "components/signin/core/browser/webdata/token_service_table.h" | 10 #include "components/signin/core/browser/webdata/token_service_table.h" |
11 #include "components/webdata/common/web_data_service_base.h" | 11 #include "components/webdata/common/web_data_service_base.h" |
12 #include "components/webdata/common/web_database_service.h" | 12 #include "components/webdata/common/web_database_service.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 TestSigninClient::TestSigninClient(PrefService* pref_service) | 15 TestSigninClient::TestSigninClient(PrefService* pref_service) |
16 : pref_service_(pref_service), are_signin_cookies_allowed_(true) {} | 16 : pref_service_(pref_service), are_signin_cookies_allowed_(true) {} |
17 | 17 |
18 TestSigninClient::~TestSigninClient() {} | 18 TestSigninClient::~TestSigninClient() {} |
19 | 19 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void TestSigninClient::DelayNetworkCall(const base::Closure& callback) { | 102 void TestSigninClient::DelayNetworkCall(const base::Closure& callback) { |
103 callback.Run(); | 103 callback.Run(); |
104 } | 104 } |
105 | 105 |
106 GaiaAuthFetcher* TestSigninClient::CreateGaiaAuthFetcher( | 106 GaiaAuthFetcher* TestSigninClient::CreateGaiaAuthFetcher( |
107 GaiaAuthConsumer* consumer, | 107 GaiaAuthConsumer* consumer, |
108 const std::string& source, | 108 const std::string& source, |
109 net::URLRequestContextGetter* getter) { | 109 net::URLRequestContextGetter* getter) { |
110 return new GaiaAuthFetcher(consumer, source, getter); | 110 return new GaiaAuthFetcher(consumer, source, getter); |
111 } | 111 } |
OLD | NEW |