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() { |
| 49 } |
| 50 |
48 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() { | 51 net::URLRequestContextGetter* TestSigninClient::GetURLRequestContext() { |
49 return request_context_; | 52 return request_context_; |
50 } | 53 } |
51 | 54 |
52 std::string TestSigninClient::GetProductVersion() { return ""; } | 55 std::string TestSigninClient::GetProductVersion() { return ""; } |
53 | 56 |
54 void TestSigninClient::LoadDatabase() { | 57 void TestSigninClient::LoadDatabase() { |
55 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | 58 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
56 base::FilePath path = temp_dir_.path().AppendASCII("TestWebDB"); | 59 base::FilePath path = temp_dir_.path().AppendASCII("TestWebDB"); |
57 scoped_refptr<WebDatabaseService> web_database = | 60 scoped_refptr<WebDatabaseService> web_database = |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 signin_host_id_ = kInvalidProcessId; | 103 signin_host_id_ = kInvalidProcessId; |
101 } | 104 } |
102 | 105 |
103 bool TestSigninClient::IsSigninProcess(int process_id) const { | 106 bool TestSigninClient::IsSigninProcess(int process_id) const { |
104 return process_id == signin_host_id_; | 107 return process_id == signin_host_id_; |
105 } | 108 } |
106 | 109 |
107 bool TestSigninClient::HasSigninProcess() const { | 110 bool TestSigninClient::HasSigninProcess() const { |
108 return signin_host_id_ != kInvalidProcessId; | 111 return signin_host_id_ != kInvalidProcessId; |
109 } | 112 } |
OLD | NEW |