| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 // This file contains unit tests for gles2 commmand ids | 6 // This file contains unit tests for gles2 commmand ids |
| 7 | 7 |
| 8 #include "tests/common/win/testing_common.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 10 | 10 |
| 11 namespace command_buffer { | 11 namespace command_buffer { |
| 12 namespace gles2 { | 12 namespace gles2 { |
| 13 | 13 |
| 14 // *** These IDs MUST NOT CHANGE!!! *** | 14 // *** These IDs MUST NOT CHANGE!!! *** |
| 15 // Changing them will break all client programs. | 15 // Changing them will break all client programs. |
| 16 TEST(GLES2CommandIdTest, CommandIdsMatch) { | 16 TEST(GLES2CommandIdTest, CommandIdsMatch) { |
| 17 COMPILE_ASSERT(ActiveTexture::kCmdId == 1024, | 17 COMPILE_ASSERT(ActiveTexture::kCmdId == 1024, |
| 18 GLES2_ActiveTexture_kCmdId_mismatch); | 18 GLES2_ActiveTexture_kCmdId_mismatch); |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 1197, | 363 COMPILE_ASSERT(VertexAttribPointer::kCmdId == 1197, |
| 364 GLES2_VertexAttribPointer_kCmdId_mismatch); | 364 GLES2_VertexAttribPointer_kCmdId_mismatch); |
| 365 COMPILE_ASSERT(Viewport::kCmdId == 1198, | 365 COMPILE_ASSERT(Viewport::kCmdId == 1198, |
| 366 GLES2_Viewport_kCmdId_mismatch); | 366 GLES2_Viewport_kCmdId_mismatch); |
| 367 COMPILE_ASSERT(SwapBuffers::kCmdId == 1199, | 367 COMPILE_ASSERT(SwapBuffers::kCmdId == 1199, |
| 368 GLES2_SwapBuffers_kCmdId_mismatch); | 368 GLES2_SwapBuffers_kCmdId_mismatch); |
| 369 } | 369 } |
| 370 } // namespace gles2 | 370 } // namespace gles2 |
| 371 } // namespace command_buffer | 371 } // namespace command_buffer |
| 372 | 372 |
| OLD | NEW |