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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/login/ui/lock_screen_test.cc
diff --git a/ash/login/ui/lock_screen_test.cc b/ash/login/ui/lock_screen_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9a959bc61b9482778e6f6f9bb5503aa54b2f756b
--- /dev/null
+++ b/ash/login/ui/lock_screen_test.cc
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/login/ui/lock_screen_test.h"
+
+#include "ui/views/widget/widget.h"
+
+namespace ash {
+
+LockScreenTest::LockScreenTest() {}
+
+LockScreenTest::~LockScreenTest() {}
+
+void LockScreenTest::PressSubmitButton() {}
+
+void LockScreenTest::SetUp() {
+ views::test::WidgetTest::SetUp();
+
+ views::Widget::InitParams params =
+ CreateParams(views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
+ params.show_state = ui::SHOW_STATE_FULLSCREEN;
+ params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
+
+ widget_ = new views::Widget();
+ widget_->Init(params);
+}
+
+void LockScreenTest::TearDown() {
+ widget_->Close();
+
+ views::test::WidgetTest::TearDown();
+}
+
+} // ash
« 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