Home
last modified time | relevance | path

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

/foundation/CastEngine/castengine_wifi_display/tests/unittest/mediaplayer/
H A Dmediacontroller_unit_test.cpp79 FILE *videoTestFp_; member in OHOS::Sharing::MediaControllerTestBaseImpl
265 videoTestFp_ = ::fopen(videoTestPath_.c_str(), "r"); in VideoTestDataLoad()
266 EXPECT_NE(nullptr, videoTestFp_); in VideoTestDataLoad()
268 bool ret = fseek(videoTestFp_, 0, SEEK_END); in VideoTestDataLoad()
271 size_t fileLen = ftell(videoTestFp_); in VideoTestDataLoad()
275 rewind(videoTestFp_); in VideoTestDataLoad()
281 ret = fread(videoTestDataTmp, 1, fileLen, videoTestFp_); in VideoTestDataLoad()
284 ::fclose(videoTestFp_); in VideoTestDataLoad()
287 videoTestFp_ = nullptr; in VideoTestDataLoad()
293 if (nullptr != videoTestFp_) { in VideoTestDataUnLoad()
[all...]
H A Dvideoplaycontroller_unit_test.cpp56 FILE *videoTestFp_; member in OHOS::Sharing::VideoPlayControllerTestBaseImpl
242 videoTestFp_ = ::fopen(videoTestPath_.c_str(), "r"); in VideoTestDataLoad()
243 EXPECT_NE(nullptr, videoTestFp_); in VideoTestDataLoad()
245 bool ret = fseek(videoTestFp_, 0, SEEK_END); in VideoTestDataLoad()
248 size_t fileLen = ftell(videoTestFp_); in VideoTestDataLoad()
252 rewind(videoTestFp_); in VideoTestDataLoad()
258 ret = fread(videoTestDataTmp, 1, fileLen, videoTestFp_); in VideoTestDataLoad()
261 ::fclose(videoTestFp_); in VideoTestDataLoad()
264 videoTestFp_ = nullptr; in VideoTestDataLoad()
270 if (nullptr != videoTestFp_) { in VideoTestDataUnLoad()
[all...]

Completed in 3 milliseconds