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

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

Issue 2513023002: [Cronet] Add CookieStoreIOS. (Closed)
Patch Set: . 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 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
18 // response body.
17 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
21 // in response body.
22 static std::string GetSetCookieURL(const std::string& cookie_line);
18 }; 23 };
19 24
20 } // namespace cronet 25 } // namespace cronet
21 26
22 #endif // COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_ 27 #endif // COMPONENTS_CRONET_IOS_TEST_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « components/cronet/ios/test/cronet_http_test.mm ('k') | components/cronet/ios/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698