Lines Matching defs:filePath
62 bool MatchJSONLineHeader(std::fstream &fs, const std::string filePath, int lineNum, CString lineContent)
66 fs.open(filePath.c_str(), std::ios::in);
82 const std::string filePath = "DFXJSNApiTests_json_001.heapsnapshot";
83 std::fstream outputString(filePath, std::ios::out);
95 DFXJSNApi::DumpHeapSnapshot(vm_, filePath, dumpOption);
96 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 1, "{\"snapshot\":"));
97 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 2, "{\"meta\":"));
98 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 3, "{\"node_fields\":"));
99 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 4, "\"node_types\":"));
100 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 5, "\"edge_fields\":"));
101 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 6, "\"edge_types\":"));
102 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 7, "\"trace_function_info_fields\":"));
103 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 8, "\"trace_node_fields\":"));
104 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 9, "\"sample_fields\":"));
105 EXPECT_TRUE(MatchJSONLineHeader(inputFile, filePath, 10, "\"location_fields\":"));
106 std::remove(filePath.c_str());
111 const std::string filePath = "DFXJSNApiTests_json_002.heapsnapshot";
112 std::fstream outputString(filePath, std::ios::out);
116 ecmascript::FileStream stream(filePath);
129 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 1, "{\"snapshot\":"));
130 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 2, "{\"meta\":"));
131 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 3, "{\"node_fields\":"));
132 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 4, "\"node_types\":"));
133 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 5, "\"edge_fields\":"));
134 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 6, "\"edge_types\":"));
135 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 7, "\"trace_function_info_fields\":"));
136 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 8, "\"trace_node_fields\":"));
137 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 9, "\"sample_fields\":"));
138 EXPECT_TRUE(MatchJSONLineHeader(fStream, filePath, 10, "\"location_fields\":"));
139 std::remove(filePath.c_str());
190 const std::string filePath = "Start_Stop_HeapTracking_001.heaptimeline";
191 std::fstream outputString(filePath, std::ios::out);
195 bool stopResult = DFXJSNApi::StopHeapTracking(vm_, filePath);
198 std::fstream inputStream(filePath, std::ios::in);
213 std::remove(filePath.c_str());
237 const std::string filePath = "Start_Stop_HeapTracking_002.heaptimeline";
238 std::fstream outputString(filePath, std::ios::out);
242 ecmascript::FileStream fileStream(filePath);
246 std::fstream inputStream(filePath, std::ios::in);
261 std::remove(filePath.c_str());