Home | History | Annotate | Download | only in tests

Lines Matching refs:str

20   InternalScopedString str(128);
21 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, false, "");
22 EXPECT_STREQ("/dir/file.cc:10:5", str.data());
24 str.clear();
25 RenderSourceLocation(&str, "/dir/file.cc", 11, 0, false, "");
26 EXPECT_STREQ("/dir/file.cc:11", str.data());
28 str.clear();
29 RenderSourceLocation(&str, "/dir/file.cc", 0, 0, false, "");
30 EXPECT_STREQ("/dir/file.cc", str.data());
32 str.clear();
33 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, false, "/dir/");
34 EXPECT_STREQ("file.cc:10:5", str.data());
36 str.clear();
37 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, true, "");
38 EXPECT_STREQ("/dir/file.cc(10,5)", str.data());
40 str.clear();
41 RenderSourceLocation(&str, "/dir/file.cc", 11, 0, true, "");
42 EXPECT_STREQ("/dir/file.cc(11)", str.data());
44 str.clear();
45 RenderSourceLocation(&str, "/dir/file.cc", 0, 0, true, "");
46 EXPECT_STREQ("/dir/file.cc", str.data());
48 str.clear();
49 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, true, "/dir/");
50 EXPECT_STREQ("file.cc(10,5)", str.data());
54 InternalScopedString str(128);
55 RenderModuleLocation(&str, "/dir/exe", 0x123, "");
56 EXPECT_STREQ("(/dir/exe+0x123)", str.data());
59 str.clear();
60 RenderModuleLocation(&str, "/dir/exe", 0x123, "/dir/");
61 EXPECT_STREQ("(exe+0x123)", str.data());
75 InternalScopedString str(256);
78 RenderFrame(&str, "%% Frame:%n PC:%p Module:%m ModuleOffset:%o "
85 str.data());
87 str.clear();
91 RenderFrame(&str, "%M", frame_no, info, false);
92 EXPECT_NE(nullptr, internal_strstr(str.data(), "400000"));
93 str.clear();
95 RenderFrame(&str, "%L", frame_no, info, false);
96 EXPECT_STREQ("(<unknown module>)", str.data());
97 str.clear();
101 RenderFrame(&str, "%M", frame_no, info, false);
102 EXPECT_NE(nullptr, internal_strstr(str.data(), "(module+0x"));
103 EXPECT_NE(nullptr, internal_strstr(str.data(), "200"));
104 str.clear();
106 RenderFrame(&str, "%L", frame_no, info, false);
107 EXPECT_STREQ("(/path/to/module+0x200)", str.data());
108 str.clear();
111 RenderFrame(&str, "%F", frame_no, info, false);
112 EXPECT_STREQ("in my_function", str.data());
113 str.clear();
116 RenderFrame(&str, "%F %S", frame_no, info, false);
117 EXPECT_STREQ("in my_function+0x100 <null>", str.data());
118 str.clear();
121 RenderFrame(&str, "%F %S", frame_no, info, false);
122 EXPECT_STREQ("in my_function my_file", str.data());
123 str.clear();
126 RenderFrame(&str, "%F %S", frame_no, info, false);
127 EXPECT_STREQ("in my_function my_file:10", str.data());
128 str.clear();
131 RenderFrame(&str, "%S %L", frame_no, info, false);
132 EXPECT_STREQ("my_file:10:5 my_file:10:5", str.data());
133 str.clear();
135 RenderFrame(&str, "%S %L", frame_no, info, true);
136 EXPECT_STREQ("my_file(10,5) my_file(10,5)", str.data());
137 str.clear();
140 RenderFrame(&str, "%F %S", frame_no, info, true);
141 EXPECT_STREQ("in my_function my_file(10)", str.data());
142 str.clear();
145 RenderFrame(&str, "%F %S", frame_no, info, true);
146 EXPECT_STREQ("in my_function my_file", str.data());
147 str.clear();