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

Unified Diff: content/common/host_shared_bitmap_manager_unittest.cc

Issue 221523003: cc: Remove all usage of GetArea() from production code in cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: getarea: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/host_shared_bitmap_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/host_shared_bitmap_manager_unittest.cc
diff --git a/content/common/host_shared_bitmap_manager_unittest.cc b/content/common/host_shared_bitmap_manager_unittest.cc
index 1f7d8dde02f4cec6ef2bb9d2893891fbbace5b41..ed0ddbab2ae62ff513957aea5f766e65bd288912 100644
--- a/content/common/host_shared_bitmap_manager_unittest.cc
+++ b/content/common/host_shared_bitmap_manager_unittest.cc
@@ -17,7 +17,7 @@ class HostSharedBitmapManagerTest : public testing::Test {
TEST_F(HostSharedBitmapManagerTest, TestCreate) {
gfx::Size bitmap_size(1, 1);
size_t size_in_bytes;
- EXPECT_TRUE(cc::SharedBitmap::GetSizeInBytes(bitmap_size, &size_in_bytes));
+ EXPECT_TRUE(cc::SharedBitmap::SizeInBytes(bitmap_size, &size_in_bytes));
scoped_ptr<base::SharedMemory> bitmap(new base::SharedMemory());
bitmap->CreateAndMapAnonymous(size_in_bytes);
memset(bitmap->memory(), 0xff, size_in_bytes);
@@ -76,7 +76,7 @@ TEST_F(HostSharedBitmapManagerTest, TestCreate) {
TEST_F(HostSharedBitmapManagerTest, TestCreateForChild) {
gfx::Size bitmap_size(1, 1);
size_t size_in_bytes;
- EXPECT_TRUE(cc::SharedBitmap::GetSizeInBytes(bitmap_size, &size_in_bytes));
+ EXPECT_TRUE(cc::SharedBitmap::SizeInBytes(bitmap_size, &size_in_bytes));
cc::SharedBitmapId id = cc::SharedBitmap::GenerateId();
base::SharedMemoryHandle handle;
manager_->AllocateSharedBitmapForChild(
@@ -97,7 +97,7 @@ TEST_F(HostSharedBitmapManagerTest, TestCreateForChild) {
TEST_F(HostSharedBitmapManagerTest, RemoveProcess) {
gfx::Size bitmap_size(1, 1);
size_t size_in_bytes;
- EXPECT_TRUE(cc::SharedBitmap::GetSizeInBytes(bitmap_size, &size_in_bytes));
+ EXPECT_TRUE(cc::SharedBitmap::SizeInBytes(bitmap_size, &size_in_bytes));
scoped_ptr<base::SharedMemory> bitmap(new base::SharedMemory());
bitmap->CreateAndMapAnonymous(size_in_bytes);
memset(bitmap->memory(), 0xff, size_in_bytes);
@@ -131,7 +131,7 @@ TEST_F(HostSharedBitmapManagerTest, RemoveProcess) {
TEST_F(HostSharedBitmapManagerTest, AddDuplicate) {
gfx::Size bitmap_size(1, 1);
size_t size_in_bytes;
- EXPECT_TRUE(cc::SharedBitmap::GetSizeInBytes(bitmap_size, &size_in_bytes));
+ EXPECT_TRUE(cc::SharedBitmap::SizeInBytes(bitmap_size, &size_in_bytes));
scoped_ptr<base::SharedMemory> bitmap(new base::SharedMemory());
bitmap->CreateAndMapAnonymous(size_in_bytes);
memset(bitmap->memory(), 0xff, size_in_bytes);
« no previous file with comments | « content/common/host_shared_bitmap_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698