1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53

ash / components / arc / test / fake_arc_intent_helper_mojo.cc [blame]

// Copyright 2022 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_arc_intent_helper_mojo.h"

namespace arc {

FakeArcIntentHelperMojo::FakeArcIntentHelperMojo() = default;
FakeArcIntentHelperMojo::~FakeArcIntentHelperMojo() = default;

bool FakeArcIntentHelperMojo::IsArcAvailable() {
  return true;
}

bool FakeArcIntentHelperMojo::IsRequestUrlHandlerListAvailable() {
  return true;
}

bool FakeArcIntentHelperMojo::IsRequestTextSelectionActionsAvailable() {
  return true;
}

bool FakeArcIntentHelperMojo::RequestUrlHandlerList(
    const std::string& url,
    RequestUrlHandlerListCallback callback) {
  std::move(callback).Run(std::vector<IntentHandlerInfo>());
  return true;
}

bool FakeArcIntentHelperMojo::RequestTextSelectionActions(
    const std::string& text,
    ui::ResourceScaleFactor scale_factor,
    RequestTextSelectionActionsCallback callback) {
  std::move(callback).Run(std::vector<TextSelectionAction>());
  return true;
}
bool FakeArcIntentHelperMojo::HandleUrl(const std::string& url,
                                        const std::string& package_name) {
  return true;
}

bool FakeArcIntentHelperMojo::HandleIntent(const IntentInfo& intent,
                                           const ActivityName& activity) {
  return true;
}

bool FakeArcIntentHelperMojo::AddPreferredPackage(
    const std::string& package_name) {
  return true;
}

}  // namespace arc