1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

ash / components / arc / test / fake_compatibility_mode_instance.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/components/arc/test/fake_compatibility_mode_instance.h"

namespace arc {

FakeCompatibilityModeInstance::FakeCompatibilityModeInstance() = default;

FakeCompatibilityModeInstance::~FakeCompatibilityModeInstance() = default;

void FakeCompatibilityModeInstance::SetResizeLockState(
    const std::string& package_name,
    mojom::ArcResizeLockState state) {}

void FakeCompatibilityModeInstance::IsOptimizedForCrosApp(
    const std::string& package_name,
    IsOptimizedForCrosAppCallback callback) {
  const bool is_o4c = o4c_pkgs_.find(package_name) != o4c_pkgs_.end();
  std::move(callback).Run(is_o4c);
}

}  // namespace arc