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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc

Issue 2538163003: [NaCl SDK] Implement FakePepperInterfaceGoogleDriveFs (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_pepper_interface_url_loader.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc
index 1df756d4f5f93b9a3b97457c299eca67b05834e8..e52a250c545ea518b12cf963cb82b1feb7bf215d 100644
--- a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc
@@ -11,6 +11,8 @@
#include "gtest/gtest.h"
+#include <ppapi/c/pp_bool.h>
+
#include "fake_ppapi/fake_util.h"
#include "nacl_io/osinttypes.h"
@@ -470,6 +472,13 @@ PP_Bool FakeURLRequestInfoInterface::SetProperty(PP_Resource request,
// Throw the value away for now. TODO(binji): add tests for this.
return PP_TRUE;
}
+ case PP_URLREQUESTPROPERTY_STREAMTOFILE: {
+ if (value.type != PP_VARTYPE_BOOL)
+ return PP_FALSE;
+
+ request_resource->stream_to_file = PP_ToBool(value.value.as_bool);
+ return PP_TRUE;
+ }
default:
EXPECT_TRUE(false) << "Unimplemented property " << property
<< " in "

Powered by Google App Engine
This is Rietveld 408576698