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 "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "gpu/command_buffer/common/gl_mock.h" | |
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 7 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
11 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
12 #include "gpu/command_buffer/service/context_group.h" | 11 #include "gpu/command_buffer/service/context_group.h" |
13 #include "gpu/command_buffer/service/program_manager.h" | 12 #include "gpu/command_buffer/service/program_manager.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "ui/gl/gl_mock.h" |
15 | 15 |
16 using ::gfx::MockGLInterface; | 16 using ::gfx::MockGLInterface; |
17 using ::testing::_; | 17 using ::testing::_; |
18 using ::testing::DoAll; | 18 using ::testing::DoAll; |
19 using ::testing::InSequence; | 19 using ::testing::InSequence; |
20 using ::testing::MatcherCast; | 20 using ::testing::MatcherCast; |
21 using ::testing::Pointee; | 21 using ::testing::Pointee; |
22 using ::testing::Return; | 22 using ::testing::Return; |
23 using ::testing::SetArrayArgument; | 23 using ::testing::SetArrayArgument; |
24 using ::testing::SetArgumentPointee; | 24 using ::testing::SetArgumentPointee; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 end_cmd.Init(); | 60 end_cmd.Init(); |
61 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd)); | 61 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd)); |
62 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 62 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
63 } | 63 } |
64 | 64 |
65 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h" | 65 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h" |
66 | 66 |
67 } // namespace gles2 | 67 } // namespace gles2 |
68 } // namespace gpu | 68 } // namespace gpu |
OLD | NEW |