summaryrefslogtreecommitdiff
path: root/tests/test_memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_memory.cpp')
-rw-r--r--tests/test_memory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_memory.cpp b/tests/test_memory.cpp
index 14c9aff..becb89b 100644
--- a/tests/test_memory.cpp
+++ b/tests/test_memory.cpp
@@ -56,7 +56,7 @@ TEST(memory_custom_memory_management)
CHECK(page_allocs == 1 && page_deallocs == 0);
// modify document (new page)
- std::basic_string<pugi::char_t> s(65536, 'x');
+ std::basic_string<char_t> s(65536, 'x');
CHECK(doc.first_child().set_name(s.c_str()));
CHECK(page_allocs == 2 && page_deallocs == 0);
@@ -93,7 +93,7 @@ TEST(memory_large_allocations)
// initial fill
for (size_t i = 0; i < 128; ++i)
{
- std::basic_string<pugi::char_t> s(i * 128, 'x');
+ std::basic_string<char_t> s(i * 128, 'x');
CHECK(doc.append_child(node_pcdata).set_value(s.c_str()));
}
@@ -103,12 +103,12 @@ TEST(memory_large_allocations)
// grow-prune loop
while (doc.first_child())
{
- pugi::xml_node node;
+ xml_node node;
// grow
for (node = doc.first_child(); node; node = node.next_sibling())
{
- std::basic_string<pugi::char_t> s = node.value();
+ std::basic_string<char_t> s = node.value();
CHECK(node.set_value((s + s).c_str()));
}
@@ -116,7 +116,7 @@ TEST(memory_large_allocations)
// prune
for (node = doc.first_child(); node; )
{
- pugi::xml_node next = node.next_sibling().next_sibling();
+ xml_node next = node.next_sibling().next_sibling();
node.parent().remove_child(node);