Home
last modified time | relevance | path

Searched refs:defaultFile_ (Results 1 - 1 of 1) sorted by relevance

/foundation/window/window_manager/snapshot/test/unittest/
H A Dsnapshot_utils_test.cpp41 const std::string defaultFile_ = "/data/local/tmp/snapshot_display_1.jpeg"; member in OHOS::Rosen::SnapshotUtilsTest
73 ASSERT_EQ(true, SnapShotUtils::CheckFileNameValid(defaultFile_)); in HWTEST_F()
146 FILE *file = fopen(defaultFile_.c_str(), "wb"); in HWTEST_F()
176 ASSERT_EQ(true, SnapShotUtils::WriteToJpegWithPixelMap(defaultFile_, *pixelMap)); in HWTEST_F()
196 ASSERT_EQ(true, SnapShotUtils::WriteToJpeg(defaultFile_, param)); in HWTEST_F()
216 ASSERT_EQ(false, SnapShotUtils::WriteToJpeg(defaultFile_, param)); in HWTEST_F()
229 int fd = open(defaultFile_.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666); in HWTEST_F()
268 ASSERT_FALSE(SnapShotUtils::WriteToJpeg(defaultFile_, param)); in HWTEST_F()
319 ASSERT_FALSE(SnapShotUtils::WriteToJpeg(defaultFile_, param)); in HWTEST_F()

Completed in 2 milliseconds