Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698