blob: 928ed96445555c04580cd31798d52614d91cf630 [file] [log] [blame]
// Copyright 2018 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 "chromeos/services/multidevice_setup/fake_account_status_change_delegate.h"
namespace chromeos {
namespace multidevice_setup {
FakeAccountStatusChangeDelegate::FakeAccountStatusChangeDelegate() = default;
FakeAccountStatusChangeDelegate::~FakeAccountStatusChangeDelegate() = default;
mojom::AccountStatusChangeDelegatePtr
FakeAccountStatusChangeDelegate::GenerateInterfacePtr() {
mojom::AccountStatusChangeDelegatePtr interface_ptr;
bindings_.AddBinding(this, mojo::MakeRequest(&interface_ptr));
return interface_ptr;
}
void FakeAccountStatusChangeDelegate::OnPotentialHostExistsForNewUser() {
++num_new_user_potential_host_events_handled_;
}
void FakeAccountStatusChangeDelegate::OnNoLongerNewUser() {
++num_no_longer_new_user_events_handled_;
}
void FakeAccountStatusChangeDelegate::OnConnectedHostSwitchedForExistingUser(
const std::string& new_host_device_name) {
++num_existing_user_host_switched_events_handled_;
}
void FakeAccountStatusChangeDelegate::OnNewChromebookAddedForExistingUser(
const std::string& new_host_device_name) {
++num_existing_user_chromebook_added_events_handled_;
}
} // namespace multidevice_setup
} // namespace chromeos