summaryrefslogtreecommitdiff
path: root/tests/test_write.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-22 20:33:02 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-22 20:33:02 -0700
commit4b371e10eed49d25bf4240a6aaa321b084e586ea (patch)
treecb00ecd69d6c43cd9e8e4e9ad2bb84acf92745c4 /tests/test_write.cpp
parent853333cd709cc063e4f97418c1297f9c83e48d41 (diff)
tests: Remove redundant pugi:: qualifier
Most tests have `using namespace pugi` which makes explicit qualifications unnecessary.
Diffstat (limited to 'tests/test_write.cpp')
-rw-r--r--tests/test_write.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index be77aa8..5736273 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -217,12 +217,12 @@ TEST_XML(write_no_escapes, "<node attr=''>text</node>")
struct test_writer: xml_writer
{
- std::basic_string<pugi::char_t> contents;
+ std::basic_string<char_t> contents;
virtual void write(const void* data, size_t size) PUGIXML_OVERRIDE
{
- CHECK(size % sizeof(pugi::char_t) == 0);
- contents.append(static_cast<const pugi::char_t*>(data), size / sizeof(pugi::char_t));
+ CHECK(size % sizeof(char_t) == 0);
+ contents.append(static_cast<const char_t*>(data), size / sizeof(char_t));
}
};
@@ -262,7 +262,7 @@ TEST_XML(write_print_stream_wide, "<node/>")
TEST_XML(write_huge_chunk, "<node/>")
{
- std::basic_string<pugi::char_t> name(10000, STR('n'));
+ std::basic_string<char_t> name(10000, STR('n'));
doc.child(STR("node")).set_name(name.c_str());
test_writer writer;
@@ -523,7 +523,7 @@ TEST(write_print_stream_empty_wide)
TEST(write_stackless)
{
unsigned int count = 20000;
- std::basic_string<pugi::char_t> data;
+ std::basic_string<char_t> data;
for (unsigned int i = 0; i < count; ++i)
data += STR("<a>");
@@ -629,11 +629,11 @@ TEST_XML_FLAGS(write_roundtrip, "<node><child1 attr1='value1' attr2='value2'/><c
std::string contents = write_narrow(doc, flags, encoding_utf8);
- pugi::xml_document verify;
+ xml_document verify;
CHECK(verify.load_buffer(contents.c_str(), contents.size(), parse_full));
CHECK(test_write_narrow(verify, flags, encoding_utf8, contents.c_str(), contents.size()));
- pugi::xml_document verifyws;
+ xml_document verifyws;
CHECK(verifyws.load_buffer(contents.c_str(), contents.size(), parse_full | parse_ws_pcdata));
CHECK(test_write_narrow(verifyws, flags, encoding_utf8, contents.c_str(), contents.size()));
}
@@ -658,7 +658,7 @@ TEST(write_flush_coverage)
for (size_t l = 0; l <= basel; ++l)
{
- std::basic_string<pugi::char_t> pad(bufl - l, STR('v'));
+ std::basic_string<char_t> pad(bufl - l, STR('v'));
a.set_value(pad.c_str());
std::string s = save_narrow(doc, format_raw, encoding_auto);
@@ -667,7 +667,7 @@ TEST(write_flush_coverage)
}
#ifndef PUGIXML_NO_EXCEPTIONS
-struct throwing_writer: pugi::xml_writer
+struct throwing_writer: xml_writer
{
virtual void write(const void*, size_t) PUGIXML_OVERRIDE
{