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

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

Issue 1490513005: Add support for ManagedMemoryPolicy (de)serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-settings
Patch Set: Add missing return-statements for conversions 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698