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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h

Issue 2513423002: [NaCl SDK] Implement FakeURLRequestInfoInterface::AppendDataToBody (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
index 545d9e4d21869a92d3f2228bacea1827033a6356..a8cb60c13254908e92b284663bfff0eb5d99a811 100644
--- a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_util.h
@@ -48,6 +48,7 @@ class FakeURLRequestInfoResource : public FakeResource {
std::string url;
std::string method;
std::string headers;
+ std::string body;
};
class FakeURLResponseInfoResource : public FakeResource {
@@ -64,5 +65,8 @@ int32_t RunCompletionCallback(PP_CompletionCallback* callback, int32_t result);
bool GetHeaderValue(const std::string& headers,
const std::string& key,
std::string* out_value);
+void SetHeader(const std::string& key,
+ const std::string& value,
+ std::string* out_headers);
#endif // LIBRARIES_NACL_IO_TEST_FAKE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698