| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 8 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 8 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
| 9 | 9 |
| 10 using ::gfx::MockGLInterface; | 10 using ::gl::MockGLInterface; |
| 11 using ::testing::_; | 11 using ::testing::_; |
| 12 using ::testing::Return; | 12 using ::testing::Return; |
| 13 using ::testing::SetArgPointee; | 13 using ::testing::SetArgPointee; |
| 14 | 14 |
| 15 namespace gpu { | 15 namespace gpu { |
| 16 namespace gles2 { | 16 namespace gles2 { |
| 17 | 17 |
| 18 using namespace cmds; | 18 using namespace cmds; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 { // UnmapBuffer fails. | 511 { // UnmapBuffer fails. |
| 512 UnmapBuffer cmd; | 512 UnmapBuffer cmd; |
| 513 cmd.Init(kTarget); | 513 cmd.Init(kTarget); |
| 514 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 514 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 515 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); | 515 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); |
| 516 } | 516 } |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace gles2 | 519 } // namespace gles2 |
| 520 } // namespace gpu | 520 } // namespace gpu |
| OLD | NEW |