Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / gpu / command_buffer / service / mocks.cc
blob25598478bf8468986ddf05ef27a06daa1c5a6f07
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
3 // found in the LICENSE file.
5 #include "base/threading/thread.h"
6 #include "base/time/time.h"
7 #include "gpu/command_buffer/service/gpu_scheduler.h"
8 #include "gpu/command_buffer/service/mocks.h"
10 namespace gpu {
12 AsyncAPIMock::AsyncAPIMock() {
13 testing::DefaultValue<error::Error>::Set(
14 error::kNoError);
17 AsyncAPIMock::~AsyncAPIMock() {}
19 void AsyncAPIMock::SetToken(unsigned int command,
20 unsigned int arg_count,
21 const void* _args) {
22 DCHECK(engine_);
23 DCHECK_EQ(1u, command);
24 DCHECK_EQ(1u, arg_count);
25 const cmd::SetToken* args =
26 static_cast<const cmd::SetToken*>(_args);
27 engine_->set_token(args->token);
30 namespace gles2 {
32 MockShaderTranslator::MockShaderTranslator() {}
34 MockShaderTranslator::~MockShaderTranslator() {}
36 MockProgramCache::MockProgramCache() {}
37 MockProgramCache::~MockProgramCache() {}
39 MockMemoryTracker::MockMemoryTracker() {}
40 MockMemoryTracker::~MockMemoryTracker() {}
42 } // namespace gles2
43 } // namespace gpu