OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/resources/scoped_resource.h" | 5 #include "cc/resources/scoped_resource.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "cc/output/renderer.h" | |
10 #include "cc/test/fake_output_surface.h" | 9 #include "cc/test/fake_output_surface.h" |
11 #include "cc/test/fake_output_surface_client.h" | 10 #include "cc/test/fake_output_surface_client.h" |
12 #include "cc/test/fake_resource_provider.h" | 11 #include "cc/test/fake_resource_provider.h" |
13 #include "cc/test/test_shared_bitmap_manager.h" | 12 #include "cc/test/test_shared_bitmap_manager.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
16 namespace cc { | 15 namespace cc { |
17 namespace { | 16 namespace { |
18 | 17 |
19 TEST(ScopedResourceTest, NewScopedResource) { | 18 TEST(ScopedResourceTest, NewScopedResource) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 gfx::ColorSpace()); | 97 gfx::ColorSpace()); |
99 EXPECT_LT(0u, texture->id()); | 98 EXPECT_LT(0u, texture->id()); |
100 EXPECT_EQ(1u, resource_provider->num_resources()); | 99 EXPECT_EQ(1u, resource_provider->num_resources()); |
101 texture->Free(); | 100 texture->Free(); |
102 EXPECT_EQ(0u, resource_provider->num_resources()); | 101 EXPECT_EQ(0u, resource_provider->num_resources()); |
103 } | 102 } |
104 } | 103 } |
105 | 104 |
106 } // namespace | 105 } // namespace |
107 } // namespace cc | 106 } // namespace cc |
OLD | NEW |