| Index: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h
|
| diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h
|
| index fa6fe238c6e038f0f59373f145b001108a954069..acab5b96efd1984e0210e1e74c785c1c8283aaa9 100644
|
| --- a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h
|
| +++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h
|
| @@ -11,16 +11,16 @@
|
|
|
| class FakeCoreInterface : public nacl_io::CoreInterface {
|
| public:
|
| - FakeCoreInterface();
|
| + explicit FakeCoreInterface(FakeResourceManager* manager);
|
|
|
| virtual void AddRefResource(PP_Resource handle);
|
| virtual void ReleaseResource(PP_Resource handle);
|
| virtual PP_Bool IsMainThread() { return PP_FALSE; }
|
|
|
| - FakeResourceManager* resource_manager() { return &resource_manager_; }
|
| + FakeResourceManager* resource_manager() { return resource_manager_; }
|
|
|
| private:
|
| - FakeResourceManager resource_manager_;
|
| + FakeResourceManager* resource_manager_; // Weak reference
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FakeCoreInterface);
|
| };
|
|
|