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

Unified Diff: content/common/host_shared_bitmap_manager_unittest.cc

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Fixed Ozone build. Created 4 years, 8 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
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 16cb139c1cb9e76098c359d42cddeb49d5273aea..e1f5feebfcb5aaffe1297c4e826c3ddb8411a3eb 100644
--- a/content/common/host_shared_bitmap_manager_unittest.cc
+++ b/content/common/host_shared_bitmap_manager_unittest.cc
@@ -29,8 +29,7 @@ TEST_F(HostSharedBitmapManagerTest, TestCreate) {
HostSharedBitmapManagerClient client(manager_.get());
base::SharedMemoryHandle handle;
bitmap->ShareToProcess(base::GetCurrentProcessHandle(), &handle);
- client.ChildAllocatedSharedBitmap(size_in_bytes, handle,
- base::GetCurrentProcessHandle(), id);
+ client.ChildAllocatedSharedBitmap(size_in_bytes, handle, id);
std::unique_ptr<cc::SharedBitmap> large_bitmap;
large_bitmap = manager_->GetSharedBitmapFromId(gfx::Size(1024, 1024), id);
@@ -115,8 +114,7 @@ TEST_F(HostSharedBitmapManagerTest, RemoveProcess) {
std::unique_ptr<HostSharedBitmapManagerClient> client(
new HostSharedBitmapManagerClient(manager_.get()));
bitmap->ShareToProcess(base::GetCurrentProcessHandle(), &handle);
- client->ChildAllocatedSharedBitmap(size_in_bytes, handle,
- base::GetCurrentProcessHandle(), id);
+ client->ChildAllocatedSharedBitmap(size_in_bytes, handle, id);
std::unique_ptr<cc::SharedBitmap> shared_bitmap;
shared_bitmap = manager_->GetSharedBitmapFromId(bitmap_size, id);
@@ -147,15 +145,13 @@ TEST_F(HostSharedBitmapManagerTest, AddDuplicate) {
base::SharedMemoryHandle handle;
bitmap->ShareToProcess(base::GetCurrentProcessHandle(), &handle);
- client.ChildAllocatedSharedBitmap(size_in_bytes, handle,
- base::GetCurrentProcessHandle(), id);
+ client.ChildAllocatedSharedBitmap(size_in_bytes, handle, id);
std::unique_ptr<base::SharedMemory> bitmap2(new base::SharedMemory());
bitmap2->CreateAndMapAnonymous(size_in_bytes);
memset(bitmap2->memory(), 0x00, size_in_bytes);
- client.ChildAllocatedSharedBitmap(size_in_bytes, bitmap2->handle(),
- base::GetCurrentProcessHandle(), id);
+ client.ChildAllocatedSharedBitmap(size_in_bytes, bitmap2->handle(), id);
std::unique_ptr<cc::SharedBitmap> shared_bitmap;
shared_bitmap = manager_->GetSharedBitmapFromId(bitmap_size, id);

Powered by Google App Engine
This is Rietveld 408576698