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

// Copyright 2020 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/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[] =;

}  // namespace

class PreferredAppsConverterTest : public testing::Test {};

// Test one simple entry with simple filter.
TEST_F(PreferredAppsConverterTest, ConvertSimpleEntry) {}

// Test one upgraded simple entry with json string.
TEST_F(PreferredAppsConverterTest, ConvertUpgradedSimpleEntryJson) {}

// Test parse simple entry from json string (old format).
TEST_F(PreferredAppsConverterTest, ParseSimpleEntryJson) {}

// Test parse simple entry from json string (upgraded for sharing).
TEST_F(PreferredAppsConverterTest, ParseUpgradedSimpleEntryJson) {}

// Test parsing an entry from before URL scopes had port numbers.
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) {}