Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: chrome/browser/ssl/ssl_browser_tests.cc

Issue 2448943004: Add experimental feature info to certificate reports (Closed)
Patch Set: battre comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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.
OLDNEW
« no previous file with comments | « chrome/browser/ssl/cert_report_helper.cc ('k') | chrome/browser/ssl/ssl_error_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698