blob: 3598b59628bb523085b9be15f08a829a57f7c8d4 [file] [log] [blame]
// Copyright 2018 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.
module ash.mojom;
import "components/account_id/interfaces/account_id.mojom";
// Provides a high-level test API for controlling the login/lock screen.
interface LoginScreenTestApi {
// Returns true if the lock screen is currently being shown.
IsLockShown() => (bool is_shown);
// Returns true if the login shelf is currently being shown.
IsLoginShelfShown() => (bool is_shown);
// Returns true if Restart button is currently being shown.
IsRestartButtonShown() => (bool is_shown);
// Returns true if Shutdown button is currently being shown.
IsShutdownButtonShown() => (bool is_shown);
// Submit |password| for |account_id|.
SubmitPassword(signin.mojom.AccountId account_id, string password) => ();
// Fetches current UI update count.
GetUiUpdateCount() => (int64 count);
// Simulates Kiosk App launch. Returns true if launch attempt was successful.
// (I.e. app was found, and launch event was generated.)
LaunchApp(string app_id) => (bool found);
// Simulate Click on AddUser button.
// Returns true if request was successful.
ClickAddUserButton() => (bool success);
// Blocks until UI update counter is greated than |previous_update_count|.
// Returns true on success, false on error.
WaitForUiUpdate(int64 previous_update_count) => (bool success);