OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "cc/proto/gpu_conversions.h" | |
6 | |
7 #include "cc/proto/memory_allocation.pb.h" | |
8 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | |
9 #include "testing/gtest/include/gtest/gtest.h" | |
10 | |
11 namespace cc { | |
12 namespace { | |
13 | |
14 TEST(GpuProtoConversionTest, | |
15 SerializeDeserializeMemoryAllocationPriorityCutoff) { | |
16 for (size_t i = 0; i < gpu::MemoryAllocation::PriorityCutoff::CUTOFF_LAST; | |
17 i++) { | |
vmpstr
2015/12/01 18:59:53
++i
nyquist
2015/12/01 22:36:47
Done.
| |
18 gpu::MemoryAllocation::PriorityCutoff priority_cutoff = | |
19 static_cast<gpu::MemoryAllocation::PriorityCutoff>(i); | |
20 EXPECT_EQ(priority_cutoff, | |
21 MemoryAllocationPriorityCutoffFromProto( | |
22 MemoryAllocationPriorityCutoffToProto(priority_cutoff))); | |
23 } | |
24 } | |
25 | |
26 } // namespace | |
27 } // namespace cc | |
OLD | NEW |