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

Unified Diff: ash/login/ui/lock_screen_test.h

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/BUILD.gn ('k') | ash/login/ui/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.h
diff --git a/ash/login/ui/lock_screen_test.h b/ash/login/ui/lock_screen_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5be8427e62f41e58485d0eef57ea4e26ad0fe8a
--- /dev/null
+++ b/ash/login/ui/lock_screen_test.h
@@ -0,0 +1,43 @@
+// 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.
+
+#ifndef ASH_LOGIN_UI_LOCK_SCREEN_TEST_H_
+#define ASH_LOGIN_UI_LOCK_SCREEN_TEST_H_
+
+#include "base/macros.h"
+#include "ui/views/test/widget_test.h"
+
+namespace views {
+class Widget;
+}
+
+namespace ash {
+
+// TODO(jdufault): Intercept mojo coming out of lock screen.
+// TODO(jdufault): Provide methods to send mojo calls to lock screen.
+
+// Base test fixture for testing the views-based lock screen. This makes it easy
+// to instantiate the lock screen view hierarchy.
+class LockScreenTest : public views::test::WidgetTest {
+ public:
+ LockScreenTest();
+ ~LockScreenTest() override;
+
+ // Press the submit button.
+ void PressSubmitButton();
+
+ // views::test::WidgetTest:
+ void SetUp() override;
+ void TearDown() override;
+
+ protected:
+ views::Widget* widget_ = nullptr;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LockScreenTest);
+};
+
+} // ash
+
+#endif // ASH_LOGIN_UI_LOCK_SCREEN_TEST_H_
« no previous file with comments | « ash/BUILD.gn ('k') | ash/login/ui/lock_screen_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698