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

Unified Diff: gpu/command_buffer/service/mocks.h

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, 12 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/mocks.h
diff --git a/gpu/command_buffer/service/mocks.h b/gpu/command_buffer/service/mocks.h
index 8a11aeefe798720b3c76f098e88f0e77ace3a07c..0d341bddfcc40c7b39ae1e200eb01f24fbcb3420 100644
--- a/gpu/command_buffer/service/mocks.h
+++ b/gpu/command_buffer/service/mocks.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -23,10 +23,8 @@ namespace gpu {
// Mocks an AsyncAPIInterface, using GMock.
class AsyncAPIMock : public AsyncAPIInterface {
public:
- AsyncAPIMock() {
- testing::DefaultValue<error::Error>::Set(
- error::kNoError);
- }
+ AsyncAPIMock();
+ virtual ~AsyncAPIMock();
// Predicate that matches args passed to DoCommand, by looking at the values.
class IsArgs {
@@ -65,14 +63,8 @@ class AsyncAPIMock : public AsyncAPIInterface {
// Forwards the SetToken commands to the engine.
void SetToken(unsigned int command,
unsigned int arg_count,
- const void* _args) {
- DCHECK(engine_);
- DCHECK_EQ(1u, command);
- DCHECK_EQ(1u, arg_count);
- const CommandBufferEntry* args =
- static_cast<const CommandBufferEntry*>(_args);
- engine_->set_token(args[0].value_uint32);
- }
+ const void* _args);
+
private:
CommandBufferEngine *engine_;
};
@@ -81,7 +73,8 @@ namespace gles2 {
class MockShaderTranslator : public ShaderTranslatorInterface {
public:
- virtual ~MockShaderTranslator() { }
+ MockShaderTranslator();
+ virtual ~MockShaderTranslator();
MOCK_METHOD4(Init, bool(
ShShaderType shader_type,

Powered by Google App Engine
This is Rietveld 408576698