blob: 9b6fcdb577667980cb8a6862813dd4ca639c013d [file] [log] [blame]
// Copyright 2019 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 "chrome/browser/ui/ash/test_login_screen.h"
#include <memory>
#include "ash/public/cpp/scoped_guest_button_blocker.h"
namespace {
class ScopedGuestButtonBlockerTestImpl : public ash::ScopedGuestButtonBlocker {
public:
ScopedGuestButtonBlockerTestImpl() = default;
~ScopedGuestButtonBlockerTestImpl() override = default;
};
} // namespace
TestLoginScreen::TestLoginScreen() = default;
TestLoginScreen::~TestLoginScreen() = default;
void TestLoginScreen::SetClient(ash::LoginScreenClient* client) {}
ash::LoginScreenModel* TestLoginScreen::GetModel() {
return &test_screen_model_;
}
void TestLoginScreen::ShowLockScreen() {}
void TestLoginScreen::ShowLoginScreen() {}
void TestLoginScreen::ShowKioskAppError(const std::string& message) {}
void TestLoginScreen::FocusLoginShelf(bool reverse) {}
bool TestLoginScreen::IsReadyForPassword() {
return true;
}
void TestLoginScreen::EnableAddUserButton(bool enable) {}
void TestLoginScreen::EnableShutdownButton(bool enable) {}
void TestLoginScreen::ShowGuestButtonInOobe(bool show) {}
void TestLoginScreen::ShowParentAccessButton(bool show) {}
void TestLoginScreen::ShowParentAccessWidget(
const AccountId& child_account_id,
base::RepeatingCallback<void(bool success)> callback,
ash::ParentAccessRequestReason reason,
bool extra_dimmer,
base::Time validation_time) {}
void TestLoginScreen::SetAllowLoginAsGuest(bool allow_guest) {}
std::unique_ptr<ash::ScopedGuestButtonBlocker>
TestLoginScreen::GetScopedGuestButtonBlocker() {
return std::make_unique<ScopedGuestButtonBlockerTestImpl>();
}
void TestLoginScreen::RequestSecurityTokenPin(
ash::SecurityTokenPinRequest request) {}
void TestLoginScreen::ClearSecurityTokenPinRequest() {}