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

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

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 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) 2011 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 #include "gpu/command_buffer/service/mocks.h"
6
7 namespace gpu {
8
9 AsyncAPIMock::AsyncAPIMock() {
10 testing::DefaultValue<error::Error>::Set(
11 error::kNoError);
12 }
13
14 AsyncAPIMock::~AsyncAPIMock() {}
15
16 void AsyncAPIMock::SetToken(unsigned int command,
17 unsigned int arg_count,
18 const void* _args) {
19 DCHECK(engine_);
20 DCHECK_EQ(1u, command);
21 DCHECK_EQ(1u, arg_count);
22 const CommandBufferEntry* args =
23 static_cast<const CommandBufferEntry*>(_args);
24 engine_->set_token(args[0].value_uint32);
25 }
26
27 namespace gles2 {
28
29 MockShaderTranslator::MockShaderTranslator() {}
30
31 MockShaderTranslator::~MockShaderTranslator() {}
32
33 } // namespace gles2
34 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698