andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
andrewxu | 7e688a76 | 2022-10-28 17:17:28 | [diff] [blame] | 5 | #include "ash/shell.h" |
andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 6 | #include "ash/test/ash_test_base.h" |
andrewxu | 60f476a7 | 2022-10-25 21:12:51 | [diff] [blame] | 7 | #include "ash/test/pixel/ash_pixel_differ.h" |
| 8 | #include "ash/test/pixel/ash_pixel_test_init_params.h" |
andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 9 | |
| 10 | namespace ash { |
| 11 | |
| 12 | class FullscreenPixelTest : public AshTestBase { |
| 13 | public: |
andrewxu | 7850e15b | 2022-10-26 18:17:39 | [diff] [blame] | 14 | // AshTestBase: |
| 15 | absl::optional<pixel_test::InitParams> CreatePixelTestInitParams() |
| 16 | const override { |
andrewxu | e0f994d | 2022-10-27 01:01:34 | [diff] [blame] | 17 | return pixel_test::InitParams(); |
andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 18 | } |
andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | // Verifies the primary fullscreen of an active user session. |
| 22 | TEST_F(FullscreenPixelTest, VerifyDefaultPrimaryDisplay) { |
andrewxu | 7e688a76 | 2022-10-28 17:17:28 | [diff] [blame] | 23 | EXPECT_TRUE(GetPixelDiffer()->CompareUiComponentsOnPrimaryScreen( |
andrewxu | 2c514b32 | 2022-11-10 19:11:19 | [diff] [blame] | 24 | "primary_display.rev_0", Shell::GetPrimaryRootWindow())); |
andrewxu | 2253f56 | 2022-10-24 04:12:25 | [diff] [blame] | 25 | } |
| 26 | |
andrewxu | 7850e15b | 2022-10-26 18:17:39 | [diff] [blame] | 27 | } // namespace ash |