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> |
| 6 |
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 8 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
7 | 9 |
8 using ::gfx::MockGLInterface; | 10 using ::gfx::MockGLInterface; |
9 using ::testing::_; | 11 using ::testing::_; |
10 using ::testing::Return; | 12 using ::testing::Return; |
11 using ::testing::SetArgPointee; | 13 using ::testing::SetArgPointee; |
12 | 14 |
13 namespace gpu { | 15 namespace gpu { |
14 namespace gles2 { | 16 namespace gles2 { |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 { // UnmapBuffer fails. | 464 { // UnmapBuffer fails. |
463 UnmapBuffer cmd; | 465 UnmapBuffer cmd; |
464 cmd.Init(kTarget); | 466 cmd.Init(kTarget); |
465 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 467 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
466 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); | 468 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); |
467 } | 469 } |
468 } | 470 } |
469 | 471 |
470 } // namespace gles2 | 472 } // namespace gles2 |
471 } // namespace gpu | 473 } // namespace gpu |
OLD | NEW |