File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -11,29 +11,30 @@ namespace testing {
11
11
12
12
ArchivistFixture::ArchivistFixture () {
13
13
std::stringstream stream;
14
- stream << flutter::testing::GetCurrentTestName () << " .db" ;
15
- archive_file_name_ = fml::paths::JoinPaths (
16
- {flutter::testing::GetFixturesPath (), stream.str ()});
14
+ stream << " Test" << flutter::testing::GetCurrentTestName () << " .db" ;
15
+ archive_file_name_ = stream.str ();
17
16
}
18
17
19
18
ArchivistFixture::~ArchivistFixture () = default ;
20
19
21
20
const std::string ArchivistFixture::GetArchiveFileName () const {
22
- return archive_file_name_;
21
+ return fml::paths::JoinPaths (
22
+ {flutter::testing::GetFixturesPath (), archive_file_name_});
23
23
}
24
24
25
25
void ArchivistFixture::SetUp () {
26
26
DeleteArchiveFile ();
27
27
}
28
28
29
29
void ArchivistFixture::TearDown () {
30
- // TODO: Tear this down. For now, I am inspecting the files for readability of
31
- // schema.
32
- // DeleteArchiveFile();
30
+ DeleteArchiveFile ();
33
31
}
34
32
35
33
void ArchivistFixture::DeleteArchiveFile () const {
36
- fml::UnlinkFile (archive_file_name_.c_str ());
34
+ auto fixtures = flutter::testing::OpenFixturesDirectory ();
35
+ if (fml::FileExists (fixtures, archive_file_name_.c_str ())) {
36
+ fml::UnlinkFile (fixtures, archive_file_name_.c_str ());
37
+ }
37
38
}
38
39
39
40
} // namespace testing
You can’t perform that action at this time.
0 commit comments