#include "services/data_decoder/public/cpp/safe_xml_parser.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/test/bind.h"
#include "base/values.h"
#include "build/build_config.h"
#include "services/data_decoder/xml_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace data_decoder {
namespace {
std::unique_ptr<base::Value> ParseXml(const std::string& xml) { … }
void ExpectElementTextEq(const base::Value& element,
const std::string& expected_text) { … }
SafeXmlParserTest;
}
TEST_F(SafeXmlParserTest, NameAccessors) { … }
TEST_F(SafeXmlParserTest, TextAccessor) { … }
TEST_F(SafeXmlParserTest, AttributeAccessor) { … }
TEST_F(SafeXmlParserTest, QualifiedName) { … }
TEST_F(SafeXmlParserTest, NamespacePrefix) { … }
TEST_F(SafeXmlParserTest, ChildAccessor) { … }
TEST_F(SafeXmlParserTest, FindByPath) { … }
}