Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: tools/gn/function_toolchain_unittest.cc

Issue 2481423002: Convert gn docstrings to C++11 raw strings. (Closed)
Patch Set: Fixes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/function_write_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_toolchain_unittest.cc
diff --git a/tools/gn/function_toolchain_unittest.cc b/tools/gn/function_toolchain_unittest.cc
index c7ffbc7a5029c139e6e95ffa549895f1b744cfdc..2d8a548e45b823a595e146b1b5df607ffff13ee8 100644
--- a/tools/gn/function_toolchain_unittest.cc
+++ b/tools/gn/function_toolchain_unittest.cc
@@ -14,12 +14,12 @@ TEST(FunctionToolchain, RuntimeOutputs) {
// These runtime outputs are a subset of the outputs so are OK.
{
TestParseInput input(
- "toolchain(\"good\") {\n"
- " tool(\"link\") {\n"
- " outputs = [ \"foo\" ]\n"
- " runtime_outputs = [ \"foo\" ]\n"
- " }\n"
- "}\n");
+ R"(toolchain("good") {
+ tool("link") {
+ outputs = [ "foo" ]
+ runtime_outputs = [ "foo" ]
+ }
+ })");
ASSERT_FALSE(input.has_error());
Err err;
@@ -43,12 +43,12 @@ TEST(FunctionToolchain, RuntimeOutputs) {
// This one is not a subset so should throw an error.
{
TestParseInput input(
- "toolchain(\"bad\") {\n"
- " tool(\"link\") {\n"
- " outputs = [ \"foo\" ]\n"
- " runtime_outputs = [ \"bar\" ]\n"
- " }\n"
- "}\n");
+ R"(toolchain("bad") {
+ tool("link") {
+ outputs = [ "foo" ]
+ runtime_outputs = [ "bar" ]
+ }
+ })");
ASSERT_FALSE(input.has_error());
Err err;
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/function_write_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698