OLD | NEW |
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 Loading... |
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 |
OLD | NEW |