| // 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 "chrome/browser/web_applications/test/test_system_web_app_manager.h" |
| |
| #include <string> |
| #include <utility> |
| |
| namespace web_app { |
| |
| TestSystemWebAppManager::TestSystemWebAppManager( |
| Profile* profile, |
| PendingAppManager* pending_app_manager) |
| : SystemWebAppManager(profile, pending_app_manager) { |
| SetSystemApps(base::flat_map<SystemAppType, GURL>()); |
| } |
| |
| TestSystemWebAppManager::~TestSystemWebAppManager() = default; |
| |
| void TestSystemWebAppManager::SetSystemApps( |
| base::flat_map<SystemAppType, GURL> system_app_urls) { |
| SetSystemAppsForTesting(std::move(system_app_urls)); |
| } |
| |
| void TestSystemWebAppManager::SetUpdatePolicy( |
| SystemWebAppManager::UpdatePolicy policy) { |
| SetUpdatePolicyForTesting(policy); |
| } |
| |
| const base::Version& TestSystemWebAppManager::CurrentVersion() const { |
| return current_version_; |
| } |
| |
| } // namespace web_app |