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

Unified Diff: gpu/ipc/common/struct_traits_unittest.cc

Issue 2579873002: gpu: Add missing entries for GPUInfo mojom. (Closed)
Patch Set: test Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/common/gpu_info_struct_traits.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/struct_traits_unittest.cc
diff --git a/gpu/ipc/common/struct_traits_unittest.cc b/gpu/ipc/common/struct_traits_unittest.cc
index 07931e81a5a427203a9812e1cacbe1ab504442fd..f77dcdbf16c676c1817061e6ca2cb477632bb100 100644
--- a/gpu/ipc/common/struct_traits_unittest.cc
+++ b/gpu/ipc/common/struct_traits_unittest.cc
@@ -389,11 +389,16 @@ TEST_F(StructTraitsTest, VideoDecodeAcceleratorCapabilities) {
gpu::VideoDecodeAcceleratorCapabilities input;
input.flags = flags;
+ input.supported_profiles.push_back(
+ gpu::VideoDecodeAcceleratorSupportedProfile());
+ input.supported_profiles.push_back(
+ gpu::VideoDecodeAcceleratorSupportedProfile());
sadrul 2016/12/15 21:28:53 I didn't set any attributes of these VideoDecodeAc
mojom::TraitsTestServicePtr proxy = GetTraitsTestProxy();
gpu::VideoDecodeAcceleratorCapabilities output;
proxy->EchoVideoDecodeAcceleratorCapabilities(input, &output);
EXPECT_EQ(flags, output.flags);
+ EXPECT_EQ(input.supported_profiles.size(), output.supported_profiles.size());
}
TEST_F(StructTraitsTest, VideoEncodeAcceleratorSupportedProfile) {
« no previous file with comments | « gpu/ipc/common/gpu_info_struct_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698