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"
12 AsyncAPIMock::AsyncAPIMock() {
13 testing::DefaultValue
<error::Error
>::Set(
17 AsyncAPIMock::~AsyncAPIMock() {}
19 void AsyncAPIMock::SetToken(unsigned int command
,
20 unsigned int arg_count
,
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
);
32 MockShaderTranslator::MockShaderTranslator() {}
34 MockShaderTranslator::~MockShaderTranslator() {}
36 MockProgramCache::MockProgramCache() {}
37 MockProgramCache::~MockProgramCache() {}
39 MockMemoryTracker::MockMemoryTracker() {}
40 MockMemoryTracker::~MockMemoryTracker() {}