diff options
author | Christopher Wiley <wiley@google.com> | 2015-09-18 10:54:51 -0700 |
---|---|---|
committer | Christopher Wiley <wiley@google.com> | 2015-09-19 10:46:31 -0700 |
commit | 413e0426eebdb41d8e9344bd2a6a0ef79369de25 (patch) | |
tree | fe7a506a380a61cb5dfbb0dd7ce063de42562e09 /ast_java_unittest.cpp | |
parent | 88924d60d8758c87ad48e6d227839eb354cf369e (diff) | |
download | android_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_java_unittest.cpp')
-rw-r--r-- | ast_java_unittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_java_unittest.cpp b/ast_java_unittest.cpp index 2d90462..31dfb5a 100644 --- a/ast_java_unittest.cpp +++ b/ast_java_unittest.cpp @@ -46,7 +46,7 @@ TEST(AstJavaTests, GeneratesClass) { a_class.extends = &extend_type; string actual_output; - CodeWriterPtr writer = get_string_writer(&actual_output); + CodeWriterPtr writer = GetStringWriter(&actual_output); a_class.Write(writer.get()); EXPECT_EQ(string(kExpectedClassOutput), actual_output); } |