Lines Matching refs:tmpfile
42 TemporaryFile tmpfile; in RunInjectCmd() local
43 close(tmpfile.release()); in RunInjectCmd()
44 args.insert(args.end(), {"-o", tmpfile.path}); in RunInjectCmd()
49 return android::base::ReadFileToString(tmpfile.path, output); in RunInjectCmd()
97 TemporaryFile tmpfile; in TEST() local
98 close(tmpfile.release()); in TEST()
99 ASSERT_TRUE(RunInjectCmd({"--output", "autofdo", "-o", tmpfile.path})); in TEST()
100 ASSERT_TRUE(RunInjectCmd({"--output", "branch-list", "-o", tmpfile.path})); in TEST()
102 ASSERT_TRUE(RunInjectCmd({"-i", tmpfile.path, "--output", "autofdo"}, &autofdo_data)); in TEST()
121 TemporaryFile tmpfile; in TEST() local
122 close(tmpfile.release()); in TEST()
124 {"--binary", "not_exist_binary", "--output", "branch-list", "-o", tmpfile.path})); in TEST()
126 ASSERT_FALSE(IsRegularFile(tmpfile.path)); in TEST()
127 tmpfile.DoNotRemove(); in TEST()
135 TemporaryFile tmpfile; in TEST() local
136 close(tmpfile.release()); in TEST()
137 ASSERT_TRUE(RunInjectCmd({"-i", recording_file, "-o", tmpfile.path})); in TEST()
139 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &autofdo_output)); in TEST()
145 ASSERT_TRUE(RunInjectCmd({"-i", recording_file, "-o", tmpfile.path, "--output", "branch-list"})); in TEST()
146 ASSERT_TRUE(RunInjectCmd({"-i", tmpfile.path, "-o", tmpfile2.path})); in TEST()