OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3038 base::Bind(&CleanUpOnIOThread)); | 3038 base::Bind(&CleanUpOnIOThread)); |
3039 } | 3039 } |
3040 | 3040 |
3041 protected: | 3041 protected: |
3042 network_time::FieldTrialTest* field_trial_test() const { | 3042 network_time::FieldTrialTest* field_trial_test() const { |
3043 return field_trial_test_.get(); | 3043 return field_trial_test_.get(); |
3044 } | 3044 } |
3045 | 3045 |
3046 void SetUpNetworkTimeServer() { | 3046 void SetUpNetworkTimeServer() { |
3047 field_trial_test()->SetNetworkQueriesWithVariationsService( | 3047 field_trial_test()->SetNetworkQueriesWithVariationsService( |
3048 true, 0.0, network_time::FieldTrialTest::FETCHES_ON_DEMAND_ONLY); | 3048 true, 0.0, network_time::NetworkTimeTracker::FETCHES_ON_DEMAND_ONLY); |
3049 | 3049 |
3050 // Install the URL interceptor that serves delayed network time | 3050 // Install the URL interceptor that serves delayed network time |
3051 // responses. | 3051 // responses. |
3052 interceptor_ = new DelayedNetworkTimeInterceptor(); | 3052 interceptor_ = new DelayedNetworkTimeInterceptor(); |
3053 content::BrowserThread::PostTask( | 3053 content::BrowserThread::PostTask( |
3054 content::BrowserThread::IO, FROM_HERE, | 3054 content::BrowserThread::IO, FROM_HERE, |
3055 base::Bind(&SetUpNetworkTimeInterceptorOnIOThread, | 3055 base::Bind(&SetUpNetworkTimeInterceptorOnIOThread, |
3056 base::Unretained(interceptor_), | 3056 base::Unretained(interceptor_), |
3057 g_browser_process->network_time_tracker() | 3057 g_browser_process->network_time_tracker() |
3058 ->GetTimeServerURLForTesting())); | 3058 ->GetTimeServerURLForTesting())); |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3900 | 3900 |
3901 // Visit a page over https that contains a frame with a redirect. | 3901 // Visit a page over https that contains a frame with a redirect. |
3902 | 3902 |
3903 // XMLHttpRequest insecure content in synchronous mode. | 3903 // XMLHttpRequest insecure content in synchronous mode. |
3904 | 3904 |
3905 // XMLHttpRequest insecure content in asynchronous mode. | 3905 // XMLHttpRequest insecure content in asynchronous mode. |
3906 | 3906 |
3907 // XMLHttpRequest over bad ssl in synchronous mode. | 3907 // XMLHttpRequest over bad ssl in synchronous mode. |
3908 | 3908 |
3909 // XMLHttpRequest over OK ssl in synchronous mode. | 3909 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |