blob: 65ec3347bf271131db5fe87788d52d37c5789819 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/user_education/mock_user_education_delegate.h"
namespace ash {
MockUserEducationDelegate::MockUserEducationDelegate() {
// Provide a default implementation of `IsNewUser()` which returns that it is
// unknown whether a given user is "new" or "existing" on invocation.
// NOTE: this prevents the Welcome Tour from running in tests which do not:
// (a) explicitly override this implementation to return `true`, or
// (b) explicitly force Welcome Tour user eligibility.
ON_CALL(*this, IsNewUser)
.WillByDefault(::testing::ReturnRefOfCopy(std::optional<bool>()));
}
MockUserEducationDelegate::~MockUserEducationDelegate() = default;
} // namespace ash