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

Side by Side Diff: ash/login/ui/lock_screen_test.cc

Issue 2869993002: cros: Basic test infrastructure for views-based lock screen.
Patch Set: Initial upload Created 3 years, 7 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 | « ash/login/ui/lock_screen_test.h ('k') | ash/login/ui/simple_lock_screen_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/login/ui/lock_screen_test.h"
6
7 #include "ui/views/widget/widget.h"
8
9 namespace ash {
10
11 LockScreenTest::LockScreenTest() {}
12
13 LockScreenTest::~LockScreenTest() {}
14
15 void LockScreenTest::PressSubmitButton() {}
16
17 void LockScreenTest::SetUp() {
18 views::test::WidgetTest::SetUp();
19
20 views::Widget::InitParams params =
21 CreateParams(views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
22 params.show_state = ui::SHOW_STATE_FULLSCREEN;
23 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
24
25 widget_ = new views::Widget();
26 widget_->Init(params);
27 }
28
29 void LockScreenTest::TearDown() {
30 widget_->Close();
31
32 views::test::WidgetTest::TearDown();
33 }
34
35 } // ash
OLDNEW
« no previous file with comments | « ash/login/ui/lock_screen_test.h ('k') | ash/login/ui/simple_lock_screen_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698