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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 696033002: Cleanup: Better constify some strings in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static Created 5 years, 11 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
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | net/tools/quic/spdy_utils.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) 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 <stddef.h> 5 #include <stddef.h>
6 #include <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 using net::tools::test::QuicServerPeer; 63 using net::tools::test::QuicServerPeer;
64 using std::ostream; 64 using std::ostream;
65 using std::string; 65 using std::string;
66 using std::vector; 66 using std::vector;
67 67
68 namespace net { 68 namespace net {
69 namespace tools { 69 namespace tools {
70 namespace test { 70 namespace test {
71 namespace { 71 namespace {
72 72
73 const char* kFooResponseBody = "Artichoke hearts make me happy."; 73 const char kFooResponseBody[] = "Artichoke hearts make me happy.";
74 const char* kBarResponseBody = "Palm hearts are pretty delicious, also."; 74 const char kBarResponseBody[] = "Palm hearts are pretty delicious, also.";
75 75
76 // Run all tests with the cross products of all versions. 76 // Run all tests with the cross products of all versions.
77 struct TestParams { 77 struct TestParams {
78 TestParams(const QuicVersionVector& client_supported_versions, 78 TestParams(const QuicVersionVector& client_supported_versions,
79 const QuicVersionVector& server_supported_versions, 79 const QuicVersionVector& server_supported_versions,
80 QuicVersion negotiated_version, 80 QuicVersion negotiated_version,
81 bool use_pacing, 81 bool use_pacing,
82 bool use_fec, 82 bool use_fec,
83 QuicTag congestion_control_tag) 83 QuicTag congestion_control_tag)
84 : client_supported_versions(client_supported_versions), 84 : client_supported_versions(client_supported_versions),
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 // Waits for up to 50 ms. 1449 // Waits for up to 50 ms.
1450 client_->client()->WaitForEvents(); 1450 client_->client()->WaitForEvents();
1451 } 1451 }
1452 server_thread_->Resume(); 1452 server_thread_->Resume();
1453 } 1453 }
1454 1454
1455 } // namespace 1455 } // namespace
1456 } // namespace test 1456 } // namespace test
1457 } // namespace tools 1457 } // namespace tools
1458 } // namespace net 1458 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | net/tools/quic/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698