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

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

Issue 148223005: [NaCl SDK] Add fake for ppb_host_resolver and ppb_net_address (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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_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);
};

Powered by Google App Engine
This is Rietveld 408576698