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 "ios/chrome/test/testing_application_context.h" | 5 #include "ios/chrome/test/testing_application_context.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/time/default_clock.h" | 9 #include "base/time/default_clock.h" |
10 #include "base/time/default_tick_clock.h" | 10 #include "base/time/default_tick_clock.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 return nullptr; | 120 return nullptr; |
121 } | 121 } |
122 | 122 |
123 network_time::NetworkTimeTracker* | 123 network_time::NetworkTimeTracker* |
124 TestingApplicationContext::GetNetworkTimeTracker() { | 124 TestingApplicationContext::GetNetworkTimeTracker() { |
125 DCHECK(thread_checker_.CalledOnValidThread()); | 125 DCHECK(thread_checker_.CalledOnValidThread()); |
126 if (!network_time_tracker_) { | 126 if (!network_time_tracker_) { |
127 DCHECK(local_state_); | 127 DCHECK(local_state_); |
128 network_time_tracker_.reset(new network_time::NetworkTimeTracker( | 128 network_time_tracker_.reset(new network_time::NetworkTimeTracker( |
129 base::WrapUnique(new base::DefaultClock), | 129 base::WrapUnique(new base::DefaultClock), |
130 base::WrapUnique(new base::DefaultTickClock), local_state_)); | 130 base::WrapUnique(new base::DefaultTickClock), local_state_, |
| 131 GetSystemURLRequestContext())); |
131 } | 132 } |
132 return network_time_tracker_.get(); | 133 return network_time_tracker_.get(); |
133 } | 134 } |
134 | 135 |
135 IOSChromeIOThread* TestingApplicationContext::GetIOSChromeIOThread() { | 136 IOSChromeIOThread* TestingApplicationContext::GetIOSChromeIOThread() { |
136 DCHECK(thread_checker_.CalledOnValidThread()); | 137 DCHECK(thread_checker_.CalledOnValidThread()); |
137 return nullptr; | 138 return nullptr; |
138 } | 139 } |
139 | 140 |
140 gcm::GCMDriver* TestingApplicationContext::GetGCMDriver() { | 141 gcm::GCMDriver* TestingApplicationContext::GetGCMDriver() { |
(...skipping 10 matching lines...) Expand all Loading... |
151 component_updater::ComponentUpdateService* | 152 component_updater::ComponentUpdateService* |
152 TestingApplicationContext::GetComponentUpdateService() { | 153 TestingApplicationContext::GetComponentUpdateService() { |
153 DCHECK(thread_checker_.CalledOnValidThread()); | 154 DCHECK(thread_checker_.CalledOnValidThread()); |
154 return nullptr; | 155 return nullptr; |
155 } | 156 } |
156 | 157 |
157 CRLSetFetcher* TestingApplicationContext::GetCRLSetFetcher() { | 158 CRLSetFetcher* TestingApplicationContext::GetCRLSetFetcher() { |
158 DCHECK(thread_checker_.CalledOnValidThread()); | 159 DCHECK(thread_checker_.CalledOnValidThread()); |
159 return nullptr; | 160 return nullptr; |
160 } | 161 } |
OLD | NEW |