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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_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_pepper_interface.h
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.h b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.h
index 68f7864c6a9f736cb2eef474703badae1e8fb130..a1a5ebcac441c4d236f1db5c4cec595caaecb24b 100644
--- a/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.h
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.h
@@ -6,7 +6,10 @@
#define TESTS_NACL_IO_TEST_FAKE_PEPPER_INTERFACE_H_
#include "fake_ppapi/fake_core_interface.h"
+#include "fake_ppapi/fake_host_resolver_interface.h"
#include "fake_ppapi/fake_messaging_interface.h"
+#include "fake_ppapi/fake_net_address_interface.h"
+#include "fake_ppapi/fake_resource_manager.h"
#include "fake_ppapi/fake_var_array_buffer_interface.h"
#include "fake_ppapi/fake_var_array_interface.h"
#include "fake_ppapi/fake_var_interface.h"
@@ -16,21 +19,32 @@
class FakePepperInterface : public nacl_io::PepperInterfaceDummy {
public:
FakePepperInterface();
- virtual ~FakePepperInterface() {}
+ virtual ~FakePepperInterface();
virtual nacl_io::CoreInterface* GetCoreInterface();
virtual nacl_io::MessagingInterface* GetMessagingInterface();
virtual nacl_io::VarArrayInterface* GetVarArrayInterface();
virtual nacl_io::VarArrayBufferInterface* GetVarArrayBufferInterface();
virtual nacl_io::VarInterface* GetVarInterface();
+ virtual nacl_io::HostResolverInterface* GetHostResolverInterface();
+ virtual nacl_io::NetAddressInterface* GetNetAddressInterface();
+ virtual PP_Instance GetInstance() { return instance_; }
+
+ FakeResourceManager* resource_manager() { return &resource_manager_; }
+ FakeVarManager* var_manager() { return &var_manager_; }
private:
+ PP_Instance instance_;
FakeVarManager var_manager_;
+ FakeResourceManager resource_manager_;
+
FakeCoreInterface core_interface_;
FakeMessagingInterface messaging_interface_;
FakeVarArrayInterface var_array_interface_;
FakeVarArrayBufferInterface var_array_buffer_interface_;
FakeVarInterface var_interface_;
+ FakeHostResolverInterface resolver_interface_;
+ FakeNetAddressInterface net_address_interface_;
DISALLOW_COPY_AND_ASSIGN(FakePepperInterface);
};

Powered by Google App Engine
This is Rietveld 408576698