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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_var_array_buffer_interface.h

Issue 137853023: [NaCl SDK] nacl_io: Add new fakes (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_var_array_buffer_interface.h
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_var_array_buffer_interface.h b/native_client_sdk/src/tests/nacl_io_test/fake_var_array_buffer_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5ccc156c1e339d4bcf9870c4d1aba20b20b3dfe
--- /dev/null
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_var_array_buffer_interface.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TESTS_NACL_IO_TEST_FAKE_VAR_ARRAY_BUFFER_INTERFACE_H_
+#define TESTS_NACL_IO_TEST_FAKE_VAR_ARRAY_BUFFER_INTERFACE_H_
+
+#include <map>
+#include <string>
+
+#include <ppapi/c/pp_var.h>
+
+#include "nacl_io/pepper_interface.h"
+#include "sdk_util/macros.h"
+
+class FakeVarManager;
+
+class FakeVarArrayBufferInterface : public nacl_io::VarArrayBufferInterface {
+ public:
+ explicit FakeVarArrayBufferInterface(FakeVarManager* manager);
+
+ virtual struct PP_Var Create(uint32_t size_in_bytes);
+ virtual PP_Bool ByteLength(struct PP_Var var, uint32_t* byte_length);
+ virtual void* Map(struct PP_Var var);
+ virtual void Unmap(struct PP_Var var);
+
+ private:
+ FakeVarManager* manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeVarArrayBufferInterface);
+};
+
+#endif // TESTS_NACL_IO_TEST_FAKE_VAR_ARRAY_BUFFER_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698