#include "components/services/app_service/public/cpp/preferred_apps_converter.h"
#include "base/json/json_reader.h"
#include "base/values.h"
#include "components/services/app_service/public/cpp/intent_filter_util.h"
#include "components/services/app_service/public/cpp/intent_test_util.h"
#include "components/services/app_service/public/cpp/intent_util.h"
#include "components/services/app_service/public/cpp/preferred_app.h"
#include "components/services/app_service/public/cpp/preferred_apps_list.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kAppId1[] = …;
}
class PreferredAppsConverterTest : public testing::Test { … };
TEST_F(PreferredAppsConverterTest, ConvertSimpleEntry) { … }
TEST_F(PreferredAppsConverterTest, ConvertUpgradedSimpleEntryJson) { … }
TEST_F(PreferredAppsConverterTest, ParseSimpleEntryJson) { … }
TEST_F(PreferredAppsConverterTest, ParseUpgradedSimpleEntryJson) { … }
TEST_F(PreferredAppsConverterTest, ParseEmptyPortEntryJson) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidAppId) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidIntentFilter) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidConditionType) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidValues) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidMatchType) { … }
TEST_F(PreferredAppsConverterTest, ParseJsonWithInvalidValue) { … }
TEST_F(PreferredAppsConverterTest, UpgradePreferredApp) { … }