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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io_test/pepper_interface_mock.h

Issue 13951014: [NaCl SDK] nacl_io: opening a node immediately after mounting would fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 7 years, 8 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
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #ifndef LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ 5 #ifndef LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ 6 #define LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_
7 7
8 #include "gmock/gmock.h" 8 #include "gmock/gmock.h"
9 #include "nacl_io/pepper_interface.h" 9 #include "nacl_io/pepper_interface.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 33
34 class PepperInterfaceMock : public PepperInterface { 34 class PepperInterfaceMock : public PepperInterface {
35 public: 35 public:
36 explicit PepperInterfaceMock(PP_Instance instance); 36 explicit PepperInterfaceMock(PP_Instance instance);
37 ~PepperInterfaceMock(); 37 ~PepperInterfaceMock();
38 38
39 virtual PP_Instance GetInstance(); 39 virtual PP_Instance GetInstance();
40 MOCK_METHOD1(AddRefResource, void(PP_Resource)); 40 MOCK_METHOD1(AddRefResource, void(PP_Resource));
41 MOCK_METHOD1(ReleaseResource, void(PP_Resource)); 41 MOCK_METHOD1(ReleaseResource, void(PP_Resource));
42 MOCK_METHOD0(IsMainThread, bool());
42 43
43 // Interface getters. 44 // Interface getters.
44 #include "nacl_io/pepper/define_empty_macros.h" 45 #include "nacl_io/pepper/define_empty_macros.h"
45 #undef BEGIN_INTERFACE 46 #undef BEGIN_INTERFACE
46 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ 47 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
47 virtual BaseClass##Mock* Get##BaseClass(); 48 virtual BaseClass##Mock* Get##BaseClass();
48 #include "nacl_io/pepper/all_interfaces.h" 49 #include "nacl_io/pepper/all_interfaces.h"
49 #include "nacl_io/pepper/undef_macros.h" 50 #include "nacl_io/pepper/undef_macros.h"
50 51
51 private: 52 private:
52 PP_Instance instance_; 53 PP_Instance instance_;
53 54
54 // Interface pointers. 55 // Interface pointers.
55 #include "nacl_io/pepper/define_empty_macros.h" 56 #include "nacl_io/pepper/define_empty_macros.h"
56 #undef BEGIN_INTERFACE 57 #undef BEGIN_INTERFACE
57 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ 58 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
58 BaseClass##Mock* BaseClass##interface_; 59 BaseClass##Mock* BaseClass##interface_;
59 #include "nacl_io/pepper/all_interfaces.h" 60 #include "nacl_io/pepper/all_interfaces.h"
60 #include "nacl_io/pepper/undef_macros.h" 61 #include "nacl_io/pepper/undef_macros.h"
61 62
62 int dummy_; 63 int dummy_;
63 }; 64 };
64 65
65 66
66 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ 67 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698