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

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

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 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
« no previous file with comments | « cc/resources/scoped_resource.h ('k') | cc/resources/scoped_ui_resource.h » ('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>
8
7 #include "cc/output/renderer.h" 9 #include "cc/output/renderer.h"
8 #include "cc/test/fake_output_surface.h" 10 #include "cc/test/fake_output_surface.h"
9 #include "cc/test/fake_output_surface_client.h" 11 #include "cc/test/fake_output_surface_client.h"
10 #include "cc/test/fake_resource_provider.h" 12 #include "cc/test/fake_resource_provider.h"
11 #include "cc/test/test_shared_bitmap_manager.h" 13 #include "cc/test/test_shared_bitmap_manager.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace cc { 16 namespace cc {
15 namespace { 17 namespace {
16 18
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888); 90 ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888);
89 EXPECT_LT(0u, texture->id()); 91 EXPECT_LT(0u, texture->id());
90 EXPECT_EQ(1u, resource_provider->num_resources()); 92 EXPECT_EQ(1u, resource_provider->num_resources());
91 texture->Free(); 93 texture->Free();
92 EXPECT_EQ(0u, resource_provider->num_resources()); 94 EXPECT_EQ(0u, resource_provider->num_resources());
93 } 95 }
94 } 96 }
95 97
96 } // namespace 98 } // namespace
97 } // namespace cc 99 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/scoped_resource.h ('k') | cc/resources/scoped_ui_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698