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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/fake_pepper_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TESTS_NACL_IO_TEST_FAKE_PEPPER_INTERFACE_H_
6 #define TESTS_NACL_IO_TEST_FAKE_PEPPER_INTERFACE_H_
7
8 #include "fake_core_interface.h"
9 #include "fake_messaging_interface.h"
10 #include "fake_var_array_buffer_interface.h"
11 #include "fake_var_array_interface.h"
12 #include "fake_var_interface.h"
13 #include "fake_var_manager.h"
14 #include "nacl_io/pepper_interface_dummy.h"
15
16 class FakePepperInterface : public nacl_io::PepperInterfaceDummy {
17 public:
18 FakePepperInterface();
19 virtual ~FakePepperInterface() {}
20
21 virtual nacl_io::CoreInterface* GetCoreInterface();
22 virtual nacl_io::MessagingInterface* GetMessagingInterface();
23 virtual nacl_io::VarArrayInterface* GetVarArrayInterface();
24 virtual nacl_io::VarArrayBufferInterface* GetVarArrayBufferInterface();
25 virtual nacl_io::VarInterface* GetVarInterface();
26
27 private:
28 FakeVarManager var_manager_;
29 FakeCoreInterface core_interface_;
30 FakeMessagingInterface messaging_interface_;
31 FakeVarArrayInterface var_array_interface_;
32 FakeVarArrayBufferInterface var_array_buffer_interface_;
33 FakeVarInterface var_interface_;
34
35 DISALLOW_COPY_AND_ASSIGN(FakePepperInterface);
36 };
37
38 #endif // TESTS_NACL_IO_TEST_FAKE_PEPPER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698