| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |