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

Side by Side Diff: ppapi/tests/test_url_request.h

Issue 2539033005: ppapi: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing forward declaration in content/renderer/pepper Created 4 years 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 | « ppapi/tests/test_message_loop.h ('k') | ppapi/thunk/ppb_instance_api.h » ('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 #ifndef PAPPI_TESTS_TEST_URL_REQUEST_H_ 5 #ifndef PAPPI_TESTS_TEST_URL_REQUEST_H_
6 #define PAPPI_TESTS_TEST_URL_REQUEST_H_ 6 #define PAPPI_TESTS_TEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/ppb_core.h" 10 #include "ppapi/c/ppb_core.h"
11 #include "ppapi/c/ppb_url_loader.h" 11 #include "ppapi/c/ppb_url_loader.h"
12 #include "ppapi/c/ppb_url_request_info.h" 12 #include "ppapi/c/ppb_url_request_info.h"
13 #include "ppapi/c/ppb_url_response_info.h" 13 #include "ppapi/c/ppb_url_response_info.h"
14 #include "ppapi/c/ppb_var.h" 14 #include "ppapi/c/ppb_var.h"
15 #include "ppapi/tests/test_case.h" 15 #include "ppapi/tests/test_case.h"
16 16
17 namespace pp {
18 class FileRef;
19 }
20
21 class TestURLRequest : public TestCase { 17 class TestURLRequest : public TestCase {
22 public: 18 public:
23 explicit TestURLRequest(TestingInstance* instance); 19 explicit TestURLRequest(TestingInstance* instance);
24 20
25 // TestCase implementation. 21 // TestCase implementation.
26 virtual bool Init(); 22 virtual bool Init();
27 virtual void RunTests(const std::string& filter); 23 virtual void RunTests(const std::string& filter);
28 24
29 private: 25 private:
30 std::string TestCreateAndIsURLRequestInfo(); 26 std::string TestCreateAndIsURLRequestInfo();
31 std::string TestSetProperty(); 27 std::string TestSetProperty();
32 std::string TestAppendDataToBody(); 28 std::string TestAppendDataToBody();
33 std::string TestAppendFileToBody(); 29 std::string TestAppendFileToBody();
34 std::string TestStress(); 30 std::string TestStress();
35 31
36 // Helpers. 32 // Helpers.
37 PP_Var PP_MakeString(const char* s); 33 PP_Var PP_MakeString(const char* s);
38 std::string LoadAndCompareBody(PP_Resource url_request, 34 std::string LoadAndCompareBody(PP_Resource url_request,
39 const std::string& expected_body); 35 const std::string& expected_body);
40 36
41 const PPB_URLRequestInfo* ppb_url_request_interface_; 37 const PPB_URLRequestInfo* ppb_url_request_interface_;
42 const PPB_URLLoader* ppb_url_loader_interface_; 38 const PPB_URLLoader* ppb_url_loader_interface_;
43 const PPB_URLResponseInfo* ppb_url_response_interface_; 39 const PPB_URLResponseInfo* ppb_url_response_interface_;
44 const PPB_Core* ppb_core_interface_; 40 const PPB_Core* ppb_core_interface_;
45 const PPB_Var* ppb_var_interface_; 41 const PPB_Var* ppb_var_interface_;
46 }; 42 };
47 43
48 #endif // PAPPI_TESTS_TEST_URL_REQUEST_H_ 44 #endif // PAPPI_TESTS_TEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_message_loop.h ('k') | ppapi/thunk/ppb_instance_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698