// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ash/login/enrollment/mock_enrollment_screen.h"
#include "chrome/browser/ash/login/screens/error_screen.h"

namespace ash {

MockEnrollmentScreen::MockEnrollmentScreen(
    PrefService* local_state,
    scoped_refptr<network::SharedURLLoaderFactory> shared_url_loader_factory,
    policy::BrowserPolicyConnectorAsh* browser_policy_connector_ash,
    base::WeakPtr<EnrollmentScreenView> view,
    ErrorScreen* error_screen,
    const ScreenExitCallback& exit_callback)
    : EnrollmentScreen(local_state,
                       std::move(shared_url_loader_factory),
                       browser_policy_connector_ash,
                       std::move(view),
                       error_screen,
                       exit_callback) {}

void MockEnrollmentScreen::ExitScreen(Result screen_result) {
  exit_callback()->Run(screen_result);
}

MockEnrollmentScreen::~MockEnrollmentScreen() = default;

MockEnrollmentScreenView::MockEnrollmentScreenView() = default;

MockEnrollmentScreenView::~MockEnrollmentScreenView() = default;

}  // namespace ash
