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

Side by Side Diff: content/common/host_shared_bitmap_manager_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <string.h>
6 7
7 #include "content/common/host_shared_bitmap_manager.h" 8 #include "content/common/host_shared_bitmap_manager.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace content { 11 namespace content {
11 namespace { 12 namespace {
12 13
13 class HostSharedBitmapManagerTest : public testing::Test { 14 class HostSharedBitmapManagerTest : public testing::Test {
14 protected: 15 protected:
15 void SetUp() override { manager_.reset(new HostSharedBitmapManager()); } 16 void SetUp() override { manager_.reset(new HostSharedBitmapManager()); }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 scoped_ptr<cc::SharedBitmap> shared_bitmap; 159 scoped_ptr<cc::SharedBitmap> shared_bitmap;
159 shared_bitmap = manager_->GetSharedBitmapFromId(bitmap_size, id); 160 shared_bitmap = manager_->GetSharedBitmapFromId(bitmap_size, id);
160 ASSERT_TRUE(shared_bitmap.get() != NULL); 161 ASSERT_TRUE(shared_bitmap.get() != NULL);
161 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes), 162 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
162 0); 163 0);
163 client.ChildDeletedSharedBitmap(id); 164 client.ChildDeletedSharedBitmap(id);
164 } 165 }
165 166
166 } // namespace 167 } // namespace
167 } // namespace content 168 } // namespace content
OLDNEW
« no previous file with comments | « content/common/host_discardable_shared_memory_manager_unittest.cc ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698