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" | |
8 #include "gpu/command_buffer/service/gpu_service_test.h" | 7 #include "gpu/command_buffer/service/gpu_service_test.h" |
9 #include "gpu/command_buffer/service/mocks.h" | 8 #include "gpu/command_buffer/service/mocks.h" |
10 #include "gpu/command_buffer/service/test_helper.h" | 9 #include "gpu/command_buffer/service/test_helper.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/gl/gl_mock.h" | 11 #include "ui/gl/gl_mock.h" |
13 | 12 |
14 using ::testing::Return; | 13 using ::testing::Return; |
15 using ::testing::ReturnRef; | 14 using ::testing::ReturnRef; |
16 | 15 |
17 namespace gpu { | 16 namespace gpu { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 EXPECT_CALL(*gl_, DeleteShader(kService1Id)) | 313 EXPECT_CALL(*gl_, DeleteShader(kService1Id)) |
315 .Times(1) | 314 .Times(1) |
316 .RetiresOnSaturation(); | 315 .RetiresOnSaturation(); |
317 manager_.Delete(shader1); // this should delete the shader. | 316 manager_.Delete(shader1); // this should delete the shader. |
318 shader2 = manager_.GetShader(kClient1Id); | 317 shader2 = manager_.GetShader(kClient1Id); |
319 EXPECT_TRUE(shader2 == NULL); | 318 EXPECT_TRUE(shader2 == NULL); |
320 } | 319 } |
321 | 320 |
322 } // namespace gles2 | 321 } // namespace gles2 |
323 } // namespace gpu | 322 } // namespace gpu |
OLD | NEW |