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

Unified Diff: components/display_compositor/host_shared_bitmap_manager_unittest.cc

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « components/display_compositor/host_shared_bitmap_manager.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/host_shared_bitmap_manager_unittest.cc
diff --git a/content/common/host_shared_bitmap_manager_unittest.cc b/components/display_compositor/host_shared_bitmap_manager_unittest.cc
similarity index 96%
rename from content/common/host_shared_bitmap_manager_unittest.cc
rename to components/display_compositor/host_shared_bitmap_manager_unittest.cc
index e1f5feebfcb5aaffe1297c4e826c3ddb8411a3eb..e3ea52419fa14a2a493cb1cb968ed36f0389b1e3 100644
--- a/content/common/host_shared_bitmap_manager_unittest.cc
+++ b/components/display_compositor/host_shared_bitmap_manager_unittest.cc
@@ -5,10 +5,10 @@
#include <stddef.h>
#include <string.h>
-#include "content/common/host_shared_bitmap_manager.h"
+#include "components/display_compositor/host_shared_bitmap_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace content {
+namespace display_compositor {
namespace {
class HostSharedBitmapManagerTest : public testing::Test {
@@ -66,7 +66,7 @@ TEST_F(HostSharedBitmapManagerTest, TestCreate) {
EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
0);
- client.ChildDeletedSharedBitmap(id);
+ client.DidDeleteSharedBitmap(id);
memset(bitmap->memory(), 0, size_in_bytes);
@@ -98,7 +98,7 @@ TEST_F(HostSharedBitmapManagerTest, TestCreateForChild) {
EXPECT_TRUE(
memcmp(bitmap->memory(), shared_bitmap->pixels(), size_in_bytes) == 0);
- client.ChildDeletedSharedBitmap(id);
+ client.DidDeleteSharedBitmap(id);
}
TEST_F(HostSharedBitmapManagerTest, RemoveProcess) {
@@ -158,8 +158,8 @@ TEST_F(HostSharedBitmapManagerTest, AddDuplicate) {
ASSERT_TRUE(shared_bitmap.get() != NULL);
EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
0);
- client.ChildDeletedSharedBitmap(id);
+ client.DidDeleteSharedBitmap(id);
}
} // namespace
-} // namespace content
+} // namespace display_compositor
« no previous file with comments | « components/display_compositor/host_shared_bitmap_manager.cc ('k') | content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698