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

Side by Side Diff: components/cronet/ios/test/test_server.h

Issue 2776583004: Use 64kb read buffer in CRNHttpProtocolHandler on iOS. (Closed)
Patch Set: Few more comments. Created 3 years, 8 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 | « components/cronet/ios/test/start_cronet.mm ('k') | components/cronet/ios/test/test_server.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_ 5 #ifndef COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_
6 #define COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_ 6 #define COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace cronet { 10 namespace cronet {
11 11
12 class TestServer { 12 class TestServer {
13 public: 13 public:
14 static bool Start(); 14 static bool Start();
15 static void Shutdown(); 15 static void Shutdown();
16 16
17 // Returns URL which respond with echo of header with |header_name| in 17 // Returns URL which respond with echo of header with |header_name| in
18 // response body. 18 // response body.
19 static std::string GetEchoHeaderURL(const std::string& header_name); 19 static std::string GetEchoHeaderURL(const std::string& header_name);
20 // Returns URL which respond with setting cookie to |cookie_line| and echo it 20 // Returns URL which respond with setting cookie to |cookie_line| and echo it
21 // in response body. 21 // in response body.
22 static std::string GetSetCookieURL(const std::string& cookie_line); 22 static std::string GetSetCookieURL(const std::string& cookie_line);
23 // Prepares response and returns URL which respond with |data_size| of bytes
24 // in response body.
25 static std::string PrepareBigDataURL(long data_size);
26 // Releases response created by PrepareBigDataURL().
27 static void ReleaseBigDataURL();
23 }; 28 };
24 29
25 } // namespace cronet 30 } // namespace cronet
26 31
27 #endif // COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_ 32 #endif // COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « components/cronet/ios/test/start_cronet.mm ('k') | components/cronet/ios/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698