| 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 "
|
|
|