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

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

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/proto/gpu_conversions.cc ('k') | cc/proto/layer.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
OLDNEW
« no previous file with comments | « cc/proto/gpu_conversions.cc ('k') | cc/proto/layer.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698