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

Side by Side Diff: components/exo/shared_memory_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « components/exo/shared_memory.cc ('k') | components/exo/shell_surface.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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>
6
5 #include "components/exo/buffer.h" 7 #include "components/exo/buffer.h"
6 #include "components/exo/shared_memory.h" 8 #include "components/exo/shared_memory.h"
7 #include "components/exo/test/exo_test_base.h" 9 #include "components/exo/test/exo_test_base.h"
8 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/buffer_format_util.h" 11 #include "ui/gfx/buffer_format_util.h"
10 12
11 namespace exo { 13 namespace exo {
12 namespace { 14 namespace {
13 15
14 using SharedMemoryTest = test::ExoTestBase; 16 using SharedMemoryTest = test::ExoTestBase;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bottom_right_buffer_size, format, 52 bottom_right_buffer_size, format,
51 (buffer_size.height() - bottom_right_buffer_size.height()) * 53 (buffer_size.height() - bottom_right_buffer_size.height()) *
52 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0) + 54 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0) +
53 (buffer_size.width() - bottom_right_buffer_size.width()) * 4, 55 (buffer_size.width() - bottom_right_buffer_size.width()) * 4,
54 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0)); 56 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0));
55 EXPECT_TRUE(bottom_right_buffer); 57 EXPECT_TRUE(bottom_right_buffer);
56 } 58 }
57 59
58 } // namespace 60 } // namespace
59 } // namespace exo 61 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/shared_memory.cc ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698