chromium/components/services/app_service/public/cpp/intent_util_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/services/app_service/public/cpp/intent_util.h"

#include "base/values.h"
#include "components/services/app_service/public/cpp/intent.h"
#include "components/services/app_service/public/cpp/intent_filter.h"
#include "components/services/app_service/public/cpp/intent_filter_util.h"
#include "components/services/app_service/public/cpp/intent_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
const char kFilterUrl[] =;
}

class IntentUtilTest : public testing::Test {};

TEST_F(IntentUtilTest, AllConditionMatches) {}

TEST_F(IntentUtilTest, OneConditionDoesNotMatch) {}

TEST_F(IntentUtilTest, IntentDoesNotHaveValueToMatch) {}

// Test ConditionMatch with more then one condition values.
TEST_F(IntentUtilTest, OneConditionValueMatch) {}

TEST_F(IntentUtilTest, NoneConditionValueMatch) {}

// Test Condition Value match with different pattern match type.
TEST_F(IntentUtilTest, NoneMatchType) {}

TEST_F(IntentUtilTest, LiteralMatchType) {}

TEST_F(IntentUtilTest, PrefixMatchType) {}

TEST_F(IntentUtilTest, SuffixMatchType) {}

TEST_F(IntentUtilTest, GlobMatchType) {}

TEST_F(IntentUtilTest, FilterMatchLevel) {}

TEST_F(IntentUtilTest, ActionMatch) {}

TEST_F(IntentUtilTest, AuthorityMatch) {}

TEST_F(IntentUtilTest, MimeTypeMatch) {}

TEST_F(IntentUtilTest, CommonMimeTypeMatch) {}

TEST_F(IntentUtilTest, CommonMimeTypeMatchMultiple) {}

GURL test_url(const std::string& file_name) {}

GURL ext_test_url(const std::string& file_name) {}

GURL system_web_app_test_url(const std::string& file_name) {}

TEST_F(IntentUtilTest, FileExtensionMatch) {}

TEST_F(IntentUtilTest, FileExtensionMatchCaseInsensitive) {}

TEST_F(IntentUtilTest, FileURLMatch) {}

TEST_F(IntentUtilTest, FileSystemWebAppURLMatch) {}

TEST_F(IntentUtilTest, FileWithTitleText) {}

TEST_F(IntentUtilTest, FileWithDlpSourceUrls) {}

/*
 * Tests that the MakeShareIntent function overload for making intent for a
 * single files creates an intent with consistent mime types.
 */
TEST_F(IntentUtilTest, ShareSingleIntent) {}

TEST_F(IntentUtilTest, TextMatch) {}

TEST_F(IntentUtilTest, Convert) {}

TEST_F(IntentUtilTest, ConvertEmptyIntent) {}

TEST_F(IntentUtilTest, CalculateCommonMimeType) {}

TEST_F(IntentUtilTest, IsGenericFileHandler) {}

TEST_F(IntentUtilTest, CloneIntent) {}

TEST_F(IntentUtilTest, IntentEqual) {}