mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
test Picture : Remove unnecessary namespace
Remove `std::`
This commit is contained in:
parent
a7f7cbd29a
commit
5fd60e14a2
1 changed files with 7 additions and 7 deletions
|
@ -129,7 +129,7 @@ TEST_CASE("Load PNG file from data", "[tvgPicture]")
|
|||
REQUIRE(picture);
|
||||
|
||||
//Open file
|
||||
ifstream file(TEST_DIR"/test.png", std::ios::in | std::ios::binary);
|
||||
ifstream file(TEST_DIR"/test.png", ios::in | ios::binary);
|
||||
REQUIRE(file.is_open());
|
||||
auto size = sizeof(uint32_t) * (1000*1000);
|
||||
auto data = (char*)malloc(size);
|
||||
|
@ -170,13 +170,13 @@ TEST_CASE("Load JPG file from data", "[tvgPicture]")
|
|||
REQUIRE(picture);
|
||||
|
||||
//Open file
|
||||
ifstream file(TEST_DIR"/test.jpg", std::ios::in | std::ios::binary);
|
||||
ifstream file(TEST_DIR"/test.jpg", ios::in | ios::binary);
|
||||
REQUIRE(file.is_open());
|
||||
auto begin = file.tellg();
|
||||
file.seekg(0, std::ios::end);
|
||||
file.seekg(0, ios::end);
|
||||
auto size = file.tellg() - begin;
|
||||
auto data = (char*)malloc(size);
|
||||
file.seekg(0, std::ios::beg);
|
||||
file.seekg(0, ios::beg);
|
||||
file.read(data, size);
|
||||
file.close();
|
||||
|
||||
|
@ -214,13 +214,13 @@ TEST_CASE("Load TVG file from data", "[tvgPicture]")
|
|||
REQUIRE(picture);
|
||||
|
||||
//Open file
|
||||
ifstream file(TEST_DIR"/tag.tvg", std::ios::in | std::ios::binary);
|
||||
ifstream file(TEST_DIR"/tag.tvg", ios::in | ios::binary);
|
||||
REQUIRE(file.is_open());
|
||||
auto begin = file.tellg();
|
||||
file.seekg(0, std::ios::end);
|
||||
file.seekg(0, ios::end);
|
||||
auto size = file.tellg() - begin;
|
||||
auto data = (char*)malloc(size);
|
||||
file.seekg(0, std::ios::beg);
|
||||
file.seekg(0, ios::beg);
|
||||
file.read(data, size);
|
||||
file.close();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue