OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "gpu/command_buffer/common/command_buffer_mock.h" | 6 #include "gpu/command_buffer/common/command_buffer_mock.h" |
7 #include "gpu/command_buffer/service/gpu_scheduler.h" | |
8 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" | 8 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" |
| 9 #include "gpu/command_buffer/service/gpu_scheduler.h" |
10 #include "gpu/command_buffer/service/mocks.h" | 10 #include "gpu/command_buffer/service/mocks.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | |
13 | 13 |
14 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
15 #include "base/mac/scoped_nsautorelease_pool.h" | 15 #include "base/mac/scoped_nsautorelease_pool.h" |
16 #endif | 16 #endif |
17 | 17 |
18 using testing::_; | 18 using testing::_; |
19 using testing::DoAll; | 19 using testing::DoAll; |
20 using testing::Invoke; | 20 using testing::Invoke; |
21 using testing::NiceMock; | 21 using testing::NiceMock; |
22 using testing::Return; | 22 using testing::Return; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 EXPECT_EQ(kRingBufferSize, scheduler_->GetSharedMemoryBuffer(7).size); | 210 EXPECT_EQ(kRingBufferSize, scheduler_->GetSharedMemoryBuffer(7).size); |
211 } | 211 } |
212 | 212 |
213 TEST_F(GpuSchedulerTest, SetTokenForwardsToCommandBuffer) { | 213 TEST_F(GpuSchedulerTest, SetTokenForwardsToCommandBuffer) { |
214 EXPECT_CALL(*command_buffer_, SetToken(7)); | 214 EXPECT_CALL(*command_buffer_, SetToken(7)); |
215 scheduler_->set_token(7); | 215 scheduler_->set_token(7); |
216 } | 216 } |
217 | 217 |
218 } // namespace gpu | 218 } // namespace gpu |
OLD | NEW |