OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 11 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
12 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 12 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
13 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 13 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
14 #include "gpu/command_buffer/service/gpu_switches.h" | 14 #include "gpu/command_buffer/service/gpu_switches.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/gl/gl_mock.h" | 16 #include "ui/gl/gl_mock.h" |
17 | 17 |
18 using ::gfx::MockGLInterface; | 18 using ::gl::MockGLInterface; |
19 using ::testing::_; | 19 using ::testing::_; |
20 using ::testing::Return; | 20 using ::testing::Return; |
21 | 21 |
22 namespace gpu { | 22 namespace gpu { |
23 namespace gles2 { | 23 namespace gles2 { |
24 | 24 |
25 // Class to use to test that functions which need feature flags or | 25 // Class to use to test that functions which need feature flags or |
26 // extensions always return INVALID_OPERATION if the feature flags is not | 26 // extensions always return INVALID_OPERATION if the feature flags is not |
27 // enabled or extension is not present. | 27 // enabled or extension is not present. |
28 class GLES2DecoderTestDisabledExtensions : public GLES2DecoderTest { | 28 class GLES2DecoderTestDisabledExtensions : public GLES2DecoderTest { |
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 SetBucketAsCString(kBucketId, kBadName1); | 1721 SetBucketAsCString(kBucketId, kBadName1); |
1722 cmd.Init(client_program_id_, kLocation, kBucketId); | 1722 cmd.Init(client_program_id_, kLocation, kBucketId); |
1723 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 1723 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
1724 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); | 1724 EXPECT_EQ(GL_INVALID_OPERATION, GetGLError()); |
1725 } | 1725 } |
1726 | 1726 |
1727 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog
en.h" | 1727 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog
en.h" |
1728 | 1728 |
1729 } // namespace gles2 | 1729 } // namespace gles2 |
1730 } // namespace gpu | 1730 } // namespace gpu |
OLD | NEW |