| 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 <stddef.h> | |
| 8 | |
| 9 #include "cc/proto/memory_allocation.pb.h" | |
| 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 namespace { | |
| 15 | |
| 16 TEST(GpuProtoConversionTest, | |
| 17 SerializeDeserializeMemoryAllocationPriorityCutoff) { | |
| 18 for (size_t i = 0; i < gpu::MemoryAllocation::PriorityCutoff::CUTOFF_LAST; | |
| 19 ++i) { | |
| 20 gpu::MemoryAllocation::PriorityCutoff priority_cutoff = | |
| 21 static_cast<gpu::MemoryAllocation::PriorityCutoff>(i); | |
| 22 EXPECT_EQ(priority_cutoff, | |
| 23 MemoryAllocationPriorityCutoffFromProto( | |
| 24 MemoryAllocationPriorityCutoffToProto(priority_cutoff))); | |
| 25 } | |
| 26 } | |
| 27 | |
| 28 } // namespace | |
| 29 } // namespace cc | |
| OLD | NEW |