chromium/chrome/browser/media/router/discovery/dial/safe_dial_app_info_parser_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/router/discovery/dial/safe_dial_app_info_parser.h"

#include <string>

#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "content/public/test/browser_task_environment.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace media_router {

namespace {

constexpr char kValidAppInfoXml[] =;

constexpr char kValidAppInfoXmlExtraData[] =;

constexpr char kInvalidAppInfoXmlExtraData[] =;

constexpr char kAppInfoXmlExtraDataWithEmptyValue[] =;

constexpr char kAppInfoXmlExtraDataWithNestedValue[] =;

constexpr char kAppInfoXmlEmptyExtraData[] =;

constexpr char kInvalidXmlNoState[] =;

constexpr char kInvalidXmlInvalidState[] =;

constexpr char kInvalidXmlNoName[] =;

constexpr char kInvalidXmlMultipleServices[] =;

}  // namespace

class SafeDialAppInfoParserTest : public testing::Test {};

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlNoService) {}

TEST_F(SafeDialAppInfoParserTest, TestValidXml) {}

TEST_F(SafeDialAppInfoParserTest, TestValidXmlExtraData) {}

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlExtraData) {}

TEST_F(SafeDialAppInfoParserTest, TestExtraDataWithEmptyValue) {}

TEST_F(SafeDialAppInfoParserTest, TestExtraDataWithNestedValue) {}

TEST_F(SafeDialAppInfoParserTest, TestEmptyExtraData) {}

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlNoState) {}

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlInvalidState) {}

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlNoName) {}

TEST_F(SafeDialAppInfoParserTest, TestInvalidXmlMultipleServices) {}

}  // namespace media_router