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

Side by Side Diff: ui/display/mojo/display_struct_traits_unittest.cc

Issue 2738043004: Relocate display_snapshot_mojo (Closed)
Patch Set: Created 3 years, 9 months 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 | « ui/display/mojo/display_snapshot_mojo_struct_traits.h ('k') | ui/display/types/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/public/cpp/bindings/binding_set.h" 9 #include "mojo/public/cpp/bindings/binding_set.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/display/display.h" 11 #include "ui/display/display.h"
12 #include "ui/display/display_layout.h" 12 #include "ui/display/display_layout.h"
13 #include "ui/display/display_snapshot_mojo.h"
14 #include "ui/display/mojo/display_struct_traits_test.mojom.h" 13 #include "ui/display/mojo/display_struct_traits_test.mojom.h"
15 #include "ui/display/types/display_constants.h" 14 #include "ui/display/types/display_constants.h"
16 #include "ui/display/types/display_mode.h" 15 #include "ui/display/types/display_mode.h"
16 #include "ui/display/types/display_snapshot_mojo.h"
17 #include "ui/display/types/gamma_ramp_rgb_entry.h" 17 #include "ui/display/types/gamma_ramp_rgb_entry.h"
18 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/geometry/size.h" 19 #include "ui/gfx/geometry/size.h"
20 20
21 namespace display { 21 namespace display {
22 namespace { 22 namespace {
23 23
24 constexpr int64_t kDisplayId1 = 123; 24 constexpr int64_t kDisplayId1 = 123;
25 constexpr int64_t kDisplayId2 = 456; 25 constexpr int64_t kDisplayId2 = 456;
26 constexpr int64_t kDisplayId3 = 789; 26 constexpr int64_t kDisplayId3 = 789;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 449 }
450 450
451 TEST_F(DisplayStructTraitsTest, HDCPStateBasic) { 451 TEST_F(DisplayStructTraitsTest, HDCPStateBasic) {
452 const display::HDCPState input(HDCP_STATE_ENABLED); 452 const display::HDCPState input(HDCP_STATE_ENABLED);
453 display::HDCPState output; 453 display::HDCPState output;
454 GetTraitsTestProxy()->EchoHDCPState(input, &output); 454 GetTraitsTestProxy()->EchoHDCPState(input, &output);
455 EXPECT_EQ(input, output); 455 EXPECT_EQ(input, output);
456 } 456 }
457 457
458 } // namespace display 458 } // namespace display
OLDNEW
« no previous file with comments | « ui/display/mojo/display_snapshot_mojo_struct_traits.h ('k') | ui/display/types/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698