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

Side by Side Diff: gpu/np_utils/np_object_mock.h

Issue 481007: Deleted np_utils library. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | « gpu/np_utils/np_headers.h ('k') | gpu/np_utils/np_object_pointer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 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 GPU_NP_UTILS_NP_OBJECT_MOCK_H_
6 #define GPU_NP_UTILS_NP_OBJECT_MOCK_H_
7
8 #include "gpu/np_utils/np_browser.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace np_utils {
12
13 class MockNPObject : public NPObject {
14 public:
15 explicit MockNPObject(NPP npp) {
16 }
17
18 MOCK_METHOD0(Invalidate, void());
19 MOCK_METHOD1(HasMethod, bool(NPIdentifier));
20 MOCK_METHOD4(Invoke,
21 bool(NPIdentifier, const NPVariant*, uint32_t, NPVariant*));
22 MOCK_METHOD3(InvokeDefault, bool(const NPVariant*, uint32_t, NPVariant*));
23 MOCK_METHOD1(HasProperty, bool(NPIdentifier));
24 MOCK_METHOD2(GetProperty, bool(NPIdentifier, NPVariant*));
25 MOCK_METHOD2(SetProperty, bool(NPIdentifier, const NPVariant*));
26 MOCK_METHOD1(RemoveProperty, bool(NPIdentifier));
27 MOCK_METHOD2(Enumerate, bool(NPIdentifier**, uint32_t*));
28 MOCK_METHOD3(Construct, bool(const NPVariant*, uint32_t, NPVariant*));
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockNPObject);
32 };
33
34 } // namespace np_utils
35
36 #endif // GPU_NP_UTILS_NP_OBJECT_MOCK_H_
OLDNEW
« no previous file with comments | « gpu/np_utils/np_headers.h ('k') | gpu/np_utils/np_object_pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698