| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "components/signin/core/browser/test_signin_client.h" | 6 #include "components/signin/core/browser/test_signin_client.h" |
| 7 #include "components/signin/core/browser/webdata/token_service_table.h" | 7 #include "components/signin/core/browser/webdata/token_service_table.h" |
| 8 #include "components/webdata/common/web_data_service_base.h" | 8 #include "components/webdata/common/web_data_service_base.h" |
| 9 #include "components/webdata/common/web_database_service.h" | 9 #include "components/webdata/common/web_database_service.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 scoped_refptr<TokenWebData> TestSigninClient::GetDatabase() { | 38 scoped_refptr<TokenWebData> TestSigninClient::GetDatabase() { |
| 39 return database_; | 39 return database_; |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool TestSigninClient::CanRevokeCredentials() { return true; } | 42 bool TestSigninClient::CanRevokeCredentials() { return true; } |
| 43 | 43 |
| 44 std::string TestSigninClient::GetSigninScopedDeviceId() { | 44 std::string TestSigninClient::GetSigninScopedDeviceId() { |
| 45 return std::string(); | 45 return std::string(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void TestSigninClient::ClearSigninScopedDeviceId() { | 48 void TestSigninClient::ClearSigninClientPrefs() { |
| 49 } | 49 } |
| 50 | 50 |
| 51 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() { | 51 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() { |
| 52 return request_context_.get(); | 52 return request_context_.get(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void TestSigninClient::SetURLRequestContext( | 55 void TestSigninClient::SetURLRequestContext( |
| 56 net::URLRequestContextGetter* request_context) { | 56 net::URLRequestContextGetter* request_context) { |
| 57 request_context_ = request_context; | 57 request_context_ = request_context; |
| 58 } | 58 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 return signin_host_id_ != kInvalidProcessId; | 119 return signin_host_id_ != kInvalidProcessId; |
| 120 } | 120 } |
| 121 | 121 |
| 122 bool TestSigninClient::IsFirstRun() const { | 122 bool TestSigninClient::IsFirstRun() const { |
| 123 return false; | 123 return false; |
| 124 } | 124 } |
| 125 | 125 |
| 126 base::Time TestSigninClient::GetInstallDate() { | 126 base::Time TestSigninClient::GetInstallDate() { |
| 127 return base::Time::Now(); | 127 return base::Time::Now(); |
| 128 } | 128 } |
| OLD | NEW |