#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_F(IntentUtilTest, OneConditionValueMatch) { … }
TEST_F(IntentUtilTest, NoneConditionValueMatch) { … }
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) { … }
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) { … }