summaryrefslogtreecommitdiffstats
path: root/ast_cpp_unittest.cpp
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-09-18 10:54:51 -0700
committerChristopher Wiley <wiley@google.com>2015-09-19 10:46:31 -0700
commit413e0426eebdb41d8e9344bd2a6a0ef79369de25 (patch)
treefe7a506a380a61cb5dfbb0dd7ce063de42562e09 /ast_cpp_unittest.cpp
parent88924d60d8758c87ad48e6d227839eb354cf369e (diff)
downloadandroid_system_tools_aidl-413e0426eebdb41d8e9344bd2a6a0ef79369de25.tar.gz
android_system_tools_aidl-413e0426eebdb41d8e9344bd2a6a0ef79369de25.tar.bz2
android_system_tools_aidl-413e0426eebdb41d8e9344bd2a6a0ef79369de25.zip
Move logic to write to stdout into CodeWriter
This will allow us to reuse it when we write C++ code. I think this will mostly come in handy for debugging. While here, rename the helper functions in accordance with the style guide. Test: unittests Bug: 24220933 Change-Id: I269eb4a0dda10588c2ae77b7c8f2b00e50e70047
Diffstat (limited to 'ast_cpp_unittest.cpp')
-rw-r--r--ast_cpp_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_cpp_unittest.cpp b/ast_cpp_unittest.cpp
index ce1981d..0b2d707 100644
--- a/ast_cpp_unittest.cpp
+++ b/ast_cpp_unittest.cpp
@@ -79,7 +79,7 @@ TEST(AstCppTests, GeneratesHeader) {
}}
};
string actual_output;
- CodeWriterPtr writer = get_string_writer(&actual_output);
+ CodeWriterPtr writer = GetStringWriter(&actual_output);
cpp_header.Write(writer.get());
EXPECT_EQ(string(kExpectedHeaderOutput), actual_output);
}