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

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

Issue 11444028: Make more GL stuff auto-generated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 #include "gpu/command_buffer/service/shader_manager.h" 5 #include "gpu/command_buffer/service/shader_manager.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "gpu/command_buffer/service/mocks.h" 8 #include "gpu/command_buffer/service/mocks.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/gl/gl_mock.h"
11 11
12 using ::testing::Return; 12 using ::testing::Return;
13 using ::testing::ReturnRef; 13 using ::testing::ReturnRef;
14 14
15 namespace gpu { 15 namespace gpu {
16 namespace gles2 { 16 namespace gles2 {
17 17
18 class ShaderManagerTest : public testing::Test { 18 class ShaderManagerTest : public testing::Test {
19 public: 19 public:
20 ShaderManagerTest() { 20 ShaderManagerTest() {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 EXPECT_EQ("original source", *info->deferred_compilation_source()); 280 EXPECT_EQ("original source", *info->deferred_compilation_source());
281 info->UpdateSource("different!"); 281 info->UpdateSource("different!");
282 EXPECT_EQ("original source", *info->deferred_compilation_source()); 282 EXPECT_EQ("original source", *info->deferred_compilation_source());
283 283
284 info->FlagSourceAsCompiled(true); 284 info->FlagSourceAsCompiled(true);
285 EXPECT_EQ("different!", *info->deferred_compilation_source()); 285 EXPECT_EQ("different!", *info->deferred_compilation_source());
286 } 286 }
287 287
288 } // namespace gles2 288 } // namespace gles2
289 } // namespace gpu 289 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/renderbuffer_manager_unittest.cc ('k') | gpu/command_buffer/service/test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698