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

Side by Side Diff: gpu/command_buffer/service/mocks.h

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
« no previous file with comments | « gpu/command_buffer/service/memory_tracking.h ('k') | gpu/command_buffer/service/path_manager.h » ('j') | 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 // This file contains definitions for mock objects, used for testing. 5 // This file contains definitions for mock objects, used for testing.
6 6
7 // TODO(apatrick): This file "manually" defines some mock objects. Using gMock 7 // TODO(apatrick): This file "manually" defines some mock objects. Using gMock
8 // would be definitely preferable, unfortunately it doesn't work on Windows yet. 8 // would be definitely preferable, unfortunately it doesn't work on Windows yet.
9 9
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
11 #define GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 11 #define GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
12 12
13 #include <stddef.h>
14 #include <stdint.h>
15
13 #include <string> 16 #include <string>
14 #include <vector> 17 #include <vector>
15 18
16 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
17 #include "gpu/command_buffer/service/cmd_parser.h" 21 #include "gpu/command_buffer/service/cmd_parser.h"
18 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
19 #include "gpu/command_buffer/service/memory_tracking.h" 22 #include "gpu/command_buffer/service/memory_tracking.h"
20 #include "gpu/command_buffer/service/program_cache.h" 23 #include "gpu/command_buffer/service/program_cache.h"
21 #include "gpu/command_buffer/service/shader_translator.h" 24 #include "gpu/command_buffer/service/shader_translator.h"
22 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
23 26
24 namespace gpu { 27 namespace gpu {
25 28
26 // Mocks an AsyncAPIInterface, using GMock. 29 // Mocks an AsyncAPIInterface, using GMock.
27 class AsyncAPIMock : public AsyncAPIInterface { 30 class AsyncAPIMock : public AsyncAPIInterface {
28 public: 31 public:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 private: 157 private:
155 friend class ::testing::StrictMock<MockMemoryTracker>; 158 friend class ::testing::StrictMock<MockMemoryTracker>;
156 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >; 159 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >;
157 virtual ~MockMemoryTracker(); 160 virtual ~MockMemoryTracker();
158 }; 161 };
159 162
160 } // namespace gles2 163 } // namespace gles2
161 } // namespace gpu 164 } // namespace gpu
162 165
163 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 166 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/memory_tracking.h ('k') | gpu/command_buffer/service/path_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698