// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/ash/services/libassistant/test_support/fake_assistant_client.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "chromeos/ash/services/libassistant/grpc/utils/timer_utils.h"
#include "chromeos/ash/services/libassistant/public/cpp/assistant_timer.h"
#include "chromeos/assistant/internal/proto/shared/proto/v2/delegate/event_handler_interface.pb.h"
namespace ash::libassistant {
FakeAssistantClient::FakeAssistantClient(
std::unique_ptr<chromeos::assistant::FakeAssistantManager>
assistant_manager)
: AssistantClient(std::move(assistant_manager)) {}
FakeAssistantClient::~FakeAssistantClient() = default;
void FakeAssistantClient::StartServices(
ServicesStatusObserver* services_status_observer) {}
bool FakeAssistantClient::StartGrpcServices() {
return true;
}
void FakeAssistantClient::StartGrpcHttpConnectionClient(
assistant_client::HttpConnectionFactory*) {}
void FakeAssistantClient::AddExperimentIds(
const std::vector<std::string>& exp_ids) {}
void FakeAssistantClient::AddSpeakerIdEnrollmentEventObserver(
GrpcServicesObserver<OnSpeakerIdEnrollmentEventRequest>* observer) {}
void FakeAssistantClient::RemoveSpeakerIdEnrollmentEventObserver(
GrpcServicesObserver<OnSpeakerIdEnrollmentEventRequest>* observer) {}
void FakeAssistantClient::StartSpeakerIdEnrollment(
const StartSpeakerIdEnrollmentRequest& request) {}
void FakeAssistantClient::CancelSpeakerIdEnrollment(
const CancelSpeakerIdEnrollmentRequest& request) {}
void FakeAssistantClient::GetSpeakerIdEnrollmentInfo(
const GetSpeakerIdEnrollmentInfoRequest& request,
base::OnceCallback<void(bool user_model_exists)> on_done) {
std::move(on_done).Run(false);
}
void FakeAssistantClient::ResetAllDataAndShutdown() {}
void FakeAssistantClient::SendDisplayRequest(
const OnDisplayRequestRequest& request) {}
void FakeAssistantClient::AddDisplayEventObserver(
GrpcServicesObserver<OnAssistantDisplayEventRequest>* observer) {}
void FakeAssistantClient::ResumeCurrentStream() {}
void FakeAssistantClient::PauseCurrentStream() {}
void FakeAssistantClient::SetExternalPlaybackState(
const MediaStatus& status_proto) {}
void FakeAssistantClient::AddDeviceStateEventObserver(
GrpcServicesObserver<OnDeviceStateEventRequest>* observer) {}
void FakeAssistantClient::SendVoicelessInteraction(
const ::assistant::api::Interaction& interaction,
const std::string& description,
const ::assistant::api::VoicelessOptions& options,
base::OnceCallback<void(bool)> on_done) {}
void FakeAssistantClient::RegisterActionModule(
assistant_client::ActionModule* action_module) {}
void FakeAssistantClient::StartVoiceInteraction() {}
void FakeAssistantClient::StopAssistantInteraction(bool cancel_conversation) {}
void FakeAssistantClient::AddConversationStateEventObserver(
GrpcServicesObserver<OnConversationStateEventRequest>* observer) {}
void FakeAssistantClient::AddMediaActionFallbackEventObserver(
GrpcServicesObserver<OnMediaActionFallbackEventRequest>* observer) {}
void FakeAssistantClient::SetInternalOptions(const std::string& locale,
bool spoken_feedback_enabled) {}
void FakeAssistantClient::SetAuthenticationInfo(const AuthTokens& tokens) {}
void FakeAssistantClient::UpdateAssistantSettings(
const ::assistant::ui::SettingsUiUpdate& settings,
const std::string& user_id,
base::OnceCallback<void(
const ::assistant::api::UpdateAssistantSettingsResponse&)> on_done) {}
void FakeAssistantClient::GetAssistantSettings(
const ::assistant::ui::SettingsUiSelector& selector,
const std::string& user_id,
base::OnceCallback<
void(const ::assistant::api::GetAssistantSettingsResponse&)> on_done) {}
void FakeAssistantClient::SetLocaleOverride(const std::string& locale) {}
std::string FakeAssistantClient::GetDeviceId() {
return assistant_manager()->GetDeviceId();
}
void FakeAssistantClient::EnableListening(bool listening_enabled) {}
void FakeAssistantClient::AddTimeToTimer(const std::string& id,
const base::TimeDelta& duration) {
}
void FakeAssistantClient::PauseTimer(const std::string& timer_id) {
}
void FakeAssistantClient::RemoveTimer(const std::string& timer_id) {
}
void FakeAssistantClient::ResumeTimer(const std::string& timer_id) {
}
void FakeAssistantClient::GetTimers(
base::OnceCallback<void(const std::vector<assistant::AssistantTimer>&)>
on_done) {
}
void FakeAssistantClient::AddAlarmTimerEventObserver(
GrpcServicesObserver<::assistant::api::OnAlarmTimerEventRequest>*
observer) {
}
} // namespace ash::libassistant