| // Copyright 2017 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 "components/arc/test/fake_wallpaper_instance.h" |
| |
| #include <utility> |
| |
| #include "base/bind.h" |
| #include "base/bind_helpers.h" |
| |
| namespace arc { |
| |
| FakeWallpaperInstance::FakeWallpaperInstance() = default; |
| |
| FakeWallpaperInstance::~FakeWallpaperInstance() = default; |
| |
| void FakeWallpaperInstance::InitDeprecated(mojom::WallpaperHostPtr host_ptr) { |
| Init(std::move(host_ptr), base::DoNothing()); |
| } |
| |
| void FakeWallpaperInstance::Init(mojom::WallpaperHostPtr host_ptr, |
| InitCallback callback) { |
| host_ = std::move(host_ptr); |
| std::move(callback).Run(); |
| } |
| |
| void FakeWallpaperInstance::OnWallpaperChanged(int32_t wallpaper_id) { |
| changed_ids_.push_back(wallpaper_id); |
| } |
| |
| } // namespace arc |