blob: 7580110533f10f7a6394fc7e90ad91df147cf668 [file] [log] [blame]
// Copyright 2019 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.
#ifndef COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_INTENT_TEST_UTIL_H_
#define COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_INTENT_TEST_UTIL_H_
#include <string>
#include "components/services/app_service/public/mojom/types.mojom.h"
namespace apps_util {
// Create intent filter that contains only the |scheme|.
apps::mojom::IntentFilterPtr CreateSchemeOnlyFilter(const std::string& scheme);
// Create intent filter that contains only the |scheme| and |host|.
apps::mojom::IntentFilterPtr CreateSchemeAndHostOnlyFilter(
const std::string& scheme,
const std::string& host);
// Create intent filter for send action.
apps::mojom::IntentFilterPtr CreateIntentFilterForSend(
const std::string& mime_types,
const std::string& activity_name = "");
// Create intent filter for send multiple action.
apps::mojom::IntentFilterPtr CreateIntentFilterForSendMultiple(
const std::string& mime_types,
const std::string& activity_name = "");
} // namespace apps_util
#endif // COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_INTENT_TEST_UTIL_H_