blob: ef296f3f89acb479e3451394d623b5d4c3867e6e [file] [log] [blame]
andrewxu2253f562022-10-24 04:12:251// 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
andrewxu7e688a762022-10-28 17:17:285#include "ash/shell.h"
andrewxu2253f562022-10-24 04:12:256#include "ash/test/ash_test_base.h"
andrewxu60f476a72022-10-25 21:12:517#include "ash/test/pixel/ash_pixel_differ.h"
8#include "ash/test/pixel/ash_pixel_test_init_params.h"
andrewxu2253f562022-10-24 04:12:259
10namespace ash {
11
12class FullscreenPixelTest : public AshTestBase {
13 public:
andrewxu7850e15b2022-10-26 18:17:3914 // AshTestBase:
15 absl::optional<pixel_test::InitParams> CreatePixelTestInitParams()
16 const override {
andrewxue0f994d2022-10-27 01:01:3417 return pixel_test::InitParams();
andrewxu2253f562022-10-24 04:12:2518 }
andrewxu2253f562022-10-24 04:12:2519};
20
21// Verifies the primary fullscreen of an active user session.
22TEST_F(FullscreenPixelTest, VerifyDefaultPrimaryDisplay) {
andrewxu7e688a762022-10-28 17:17:2823 EXPECT_TRUE(GetPixelDiffer()->CompareUiComponentsOnPrimaryScreen(
andrewxu2c514b322022-11-10 19:11:1924 "primary_display.rev_0", Shell::GetPrimaryRootWindow()));
andrewxu2253f562022-10-24 04:12:2525}
26
andrewxu7850e15b2022-10-26 18:17:3927} // namespace ash