1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ash / user_education / mock_user_education_delegate.cc [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