| Index: native_client_sdk/src/tests/nacl_io_test/fake_var_array_interface.h
|
| diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_var_array_interface.h b/native_client_sdk/src/tests/nacl_io_test/fake_var_array_interface.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b08c752cd115034265ce348d86176d03e371ff50
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/tests/nacl_io_test/fake_var_array_interface.h
|
| @@ -0,0 +1,34 @@
|
| +// 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_INTERFACE_H_
|
| +#define TESTS_NACL_IO_TEST_FAKE_VAR_ARRAY_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 FakeVarArrayInterface : public nacl_io::VarArrayInterface {
|
| + public:
|
| + explicit FakeVarArrayInterface(FakeVarManager* manager);
|
| +
|
| + virtual PP_Var Create();
|
| + virtual PP_Var Get(PP_Var array, uint32_t index);
|
| + virtual PP_Bool Set(PP_Var array, uint32_t index, PP_Var value);
|
| + virtual uint32_t GetLength(PP_Var array);
|
| + virtual PP_Bool SetLength(PP_Var array, uint32_t length);
|
| +
|
| + private:
|
| + FakeVarManager* manager_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(FakeVarArrayInterface);
|
| +};
|
| +
|
| +#endif // TESTS_NACL_IO_TEST_FAKE_VAR_ARRAY_INTERFACE_H_
|
|
|