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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/buffer_manager.h" 10 #include "gpu/command_buffer/service/buffer_manager.h"
11 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 11 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
12 #include "gpu/command_buffer/service/context_group.h" 12 #include "gpu/command_buffer/service/context_group.h"
13 #include "gpu/command_buffer/service/framebuffer_manager.h" 13 #include "gpu/command_buffer/service/framebuffer_manager.h"
14 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 14 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
15 #include "gpu/command_buffer/service/program_manager.h" 15 #include "gpu/command_buffer/service/program_manager.h"
16 #include "gpu/command_buffer/service/query_manager.h" 16 #include "gpu/command_buffer/service/query_manager.h"
17 #include "gpu/command_buffer/service/renderbuffer_manager.h" 17 #include "gpu/command_buffer/service/renderbuffer_manager.h"
18 #include "gpu/command_buffer/service/shader_manager.h" 18 #include "gpu/command_buffer/service/shader_manager.h"
19 #include "gpu/command_buffer/service/test_helper.h" 19 #include "gpu/command_buffer/service/test_helper.h"
20 #include "gpu/command_buffer/service/texture_manager.h" 20 #include "gpu/command_buffer/service/texture_manager.h"
21 #include "gpu/command_buffer/service/vertex_array_manager.h" 21 #include "gpu/command_buffer/service/vertex_array_manager.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "ui/gl/gl_context_stub_with_extensions.h" 23 #include "ui/gl/gl_context_stub_with_extensions.h"
24 #include "ui/gl/gl_surface_stub.h" 24 #include "ui/gl/gl_surface_stub.h"
25 #include "ui/gl/gl_mock.h" 25 #include "ui/gl/gl_mock.h"
26 26
27 namespace base {
27 class CommandLine; 28 class CommandLine;
29 }
28 30
29 namespace gpu { 31 namespace gpu {
30 namespace gles2 { 32 namespace gles2 {
31 33
32 class MemoryTracker; 34 class MemoryTracker;
33 35
34 class GLES2DecoderTestBase : public testing::Test { 36 class GLES2DecoderTestBase : public testing::Test {
35 public: 37 public:
36 GLES2DecoderTestBase(); 38 GLES2DecoderTestBase();
37 virtual ~GLES2DecoderTestBase(); 39 virtual ~GLES2DecoderTestBase();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void InitDecoderWithCommandLine( 164 void InitDecoderWithCommandLine(
163 const char* extensions, 165 const char* extensions,
164 const char* gl_version, 166 const char* gl_version,
165 bool has_alpha, 167 bool has_alpha,
166 bool has_depth, 168 bool has_depth,
167 bool has_stencil, 169 bool has_stencil,
168 bool request_alpha, 170 bool request_alpha,
169 bool request_depth, 171 bool request_depth,
170 bool request_stencil, 172 bool request_stencil,
171 bool bind_generates_resource, 173 bool bind_generates_resource,
172 const CommandLine* command_line); 174 const base::CommandLine* command_line);
173 175
174 void ResetDecoder(); 176 void ResetDecoder();
175 177
176 const ContextGroup& group() const { 178 const ContextGroup& group() const {
177 return *group_.get(); 179 return *group_.get();
178 } 180 }
179 181
180 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const { 182 ::testing::StrictMock< ::gfx::MockGLInterface>* GetGLMock() const {
181 return gl_.get(); 183 return gl_.get();
182 } 184 }
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 protected: 556 protected:
555 virtual void SetUp() OVERRIDE; 557 virtual void SetUp() OVERRIDE;
556 virtual void TearDown() OVERRIDE; 558 virtual void TearDown() OVERRIDE;
557 559
558 }; 560 };
559 561
560 } // namespace gles2 562 } // namespace gles2
561 } // namespace gpu 563 } // namespace gpu
562 564
563 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 565 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698