Lines Matching refs:opts
10 EscapeOptions opts; in TEST() local
11 opts.mode = ESCAPE_NINJA; in TEST()
12 std::string result = EscapeString("asdf: \"$\\bar", opts, nullptr); in TEST()
17 EscapeOptions opts; in TEST() local
18 opts.mode = ESCAPE_DEPFILE; in TEST()
19 std::string result = EscapeString("asdf:$ \\#*[|]bar", opts, nullptr); in TEST()
24 EscapeOptions opts; in TEST() local
25 opts.mode = ESCAPE_NINJA_COMMAND; in TEST()
26 opts.platform = ESCAPE_PLATFORM_WIN; in TEST()
29 EXPECT_EQ("foo\\bar", EscapeString("foo\\bar", opts, nullptr)); in TEST()
33 EXPECT_EQ("\"foo\\$ bar\"", EscapeString("foo\\ bar", opts, &needs_quoting)); in TEST()
38 opts.inhibit_quoting = true; in TEST()
39 EXPECT_EQ("foo\\$ bar", EscapeString("foo\\ bar", opts, &needs_quoting)); in TEST()
41 opts.inhibit_quoting = false; in TEST()
44 EXPECT_EQ("\"foo$ bar\\\\\\\\\"", EscapeString("foo bar\\\\", opts, nullptr)); in TEST()
47 EXPECT_EQ("\"foo\\\\\\\"$ bar\"", EscapeString("foo\\\" bar", opts, nullptr)); in TEST()
51 EscapeOptions opts; in TEST() local
52 opts.mode = ESCAPE_NINJA_COMMAND; in TEST()
53 opts.platform = ESCAPE_PLATFORM_POSIX; in TEST()
56 EXPECT_EQ("a$:\\$ \\\"\\$$\\\\b", EscapeString("a: \"$\\b", opts, nullptr)); in TEST()
59 EXPECT_EQ("a_\\;\\<\\*b", EscapeString("a_;<*b", opts, nullptr)); in TEST()
63 EXPECT_EQ("\\{a,b\\}\\{c,d\\}", EscapeString("{a,b}{c,d}", opts, nullptr)); in TEST()
67 EscapeOptions opts; in TEST() local
68 opts.mode = ESCAPE_NINJA_PREFORMATTED_COMMAND; in TEST()
71 EXPECT_EQ("a: \"$$\\b<;", EscapeString("a: \"$\\b<;", opts, nullptr)); in TEST()
75 EscapeOptions opts; in TEST() local
76 opts.mode = ESCAPE_SPACE; in TEST()
80 EscapeString("-VERSION=\"libsrtp2 2.1.0-pre\"", opts, nullptr)); in TEST()
84 EscapeOptions opts; in TEST() local
85 opts.mode = ESCAPE_NINJA_PREFORMATTED_COMMAND; in TEST()
86 opts.inhibit_quoting = true; in TEST()
91 EscapeJSONStringToStream(out, "foo\\\" bar", opts); in TEST()
96 EscapeJSONStringToStream(out1, "foo bar\\\\", opts); in TEST()
101 EscapeJSONStringToStream(out2, "a: \"$\\b", opts); in TEST()
106 EscapeOptions opts; in TEST() local
107 opts.mode = ESCAPE_COMPILATION_DATABASE; in TEST()
110 std::string result = EscapeString("asdf:$ \\#*[|]bar", opts, nullptr); in TEST()