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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/pepper_interface_mock.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
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 TESTS_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ 6 #define TESTS_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
11 // Mock interface class definitions. 11 // Mock interface class definitions.
12 #include "nacl_io/pepper/undef_macros.h" 12 #include "nacl_io/pepper/undef_macros.h"
13 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ 13 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
14 class BaseClass##Mock : public nacl_io::BaseClass { \ 14 class BaseClass##Mock : public nacl_io::BaseClass { \
15 public: \ 15 public: \
16 BaseClass##Mock(); \ 16 BaseClass##Mock(); \
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Interface pointers. 54 // Interface pointers.
55 #include "nacl_io/pepper/undef_macros.h" 55 #include "nacl_io/pepper/undef_macros.h"
56 #include "nacl_io/pepper/define_empty_macros.h" 56 #include "nacl_io/pepper/define_empty_macros.h"
57 #undef BEGIN_INTERFACE 57 #undef BEGIN_INTERFACE
58 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \ 58 #define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
59 BaseClass##Mock* BaseClass##interface_; 59 BaseClass##Mock* BaseClass##interface_;
60 #include "nacl_io/pepper/all_interfaces.h" 60 #include "nacl_io/pepper/all_interfaces.h"
61 }; 61 };
62 62
63 63
64 #endif // LIBRARIES_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_ 64 #endif // TESTS_NACL_IO_TEST_PEPPER_INTERFACE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698