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

Side by Side Diff: cc/resources/scoped_resource_unittest.cc

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 years, 4 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
« no previous file with comments | « cc/resources/resource_pool.h ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/resources/resource_pool.h ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698