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

Side by Side Diff: cc/proto/gpu_conversions_unittest.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/playback/transform_display_item.cc ('k') | cc/proto/skia_conversions_unittest.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 "cc/proto/gpu_conversions.h" 5 #include "cc/proto/gpu_conversions.h"
6 6
7 #include <stddef.h>
8
7 #include "cc/proto/memory_allocation.pb.h" 9 #include "cc/proto/memory_allocation.pb.h"
8 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 12
11 namespace cc { 13 namespace cc {
12 namespace { 14 namespace {
13 15
14 TEST(GpuProtoConversionTest, 16 TEST(GpuProtoConversionTest,
15 SerializeDeserializeMemoryAllocationPriorityCutoff) { 17 SerializeDeserializeMemoryAllocationPriorityCutoff) {
16 for (size_t i = 0; i < gpu::MemoryAllocation::PriorityCutoff::CUTOFF_LAST; 18 for (size_t i = 0; i < gpu::MemoryAllocation::PriorityCutoff::CUTOFF_LAST;
17 ++i) { 19 ++i) {
18 gpu::MemoryAllocation::PriorityCutoff priority_cutoff = 20 gpu::MemoryAllocation::PriorityCutoff priority_cutoff =
19 static_cast<gpu::MemoryAllocation::PriorityCutoff>(i); 21 static_cast<gpu::MemoryAllocation::PriorityCutoff>(i);
20 EXPECT_EQ(priority_cutoff, 22 EXPECT_EQ(priority_cutoff,
21 MemoryAllocationPriorityCutoffFromProto( 23 MemoryAllocationPriorityCutoffFromProto(
22 MemoryAllocationPriorityCutoffToProto(priority_cutoff))); 24 MemoryAllocationPriorityCutoffToProto(priority_cutoff)));
23 } 25 }
24 } 26 }
25 27
26 } // namespace 28 } // namespace
27 } // namespace cc 29 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/transform_display_item.cc ('k') | cc/proto/skia_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698