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

Side by Side Diff: net/base/run_all_unittests.cc

Issue 9817014: Created a new class SpdyTestStateHelper to serve as a helper to manage the state of a number of SPD… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 8 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_network_transaction_spdy21_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "base/metrics/histogram.h" 6 #include "base/metrics/histogram.h"
7 #include "crypto/nss_util.h" 7 #include "crypto/nss_util.h"
8 #include "net/base/net_test_suite.h" 8 #include "net/base/net_test_suite.h"
9 #include "net/socket/client_socket_pool_base.h" 9 #include "net/socket/client_socket_pool_base.h"
10 #include "net/spdy/spdy_session.h" 10 #include "net/spdy/spdy_session.h"
11 11
12 using net::internal::ClientSocketPoolBaseHelper; 12 using net::internal::ClientSocketPoolBaseHelper;
13 using net::SpdySession; 13 using net::SpdySession;
14 14
15 int main(int argc, char** argv) { 15 int main(int argc, char** argv) {
16 // Record histograms, so we can get histograms data in tests. 16 // Record histograms, so we can get histograms data in tests.
17 base::StatisticsRecorder recorder; 17 base::StatisticsRecorder recorder;
18 NetTestSuite test_suite(argc, argv); 18 NetTestSuite test_suite(argc, argv);
19 ClientSocketPoolBaseHelper::set_connect_backup_jobs_enabled(false); 19 ClientSocketPoolBaseHelper::set_connect_backup_jobs_enabled(false);
20 SpdySession::set_enable_ping_based_connection_checking(false);
21 20
22 #if defined(OS_WIN) 21 #if defined(OS_WIN)
23 // We want to be sure to init NSPR on the main thread. 22 // We want to be sure to init NSPR on the main thread.
24 crypto::EnsureNSPRInit(); 23 crypto::EnsureNSPRInit();
25 #endif 24 #endif
26 25
27 return test_suite.Run(); 26 return test_suite.Run();
28 } 27 }
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_transaction_spdy21_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698