diff --git a/interfaces/test/unittest/BUILD.gn b/interfaces/test/unittest/BUILD.gn index 67206b9964704f315eb3c50d597d14190a458061..9a3e2915ec3f109a57fc3638b5b85cec8f2c784f 100644 --- a/interfaces/test/unittest/BUILD.gn +++ b/interfaces/test/unittest/BUILD.gn @@ -16,6 +16,7 @@ import("//foundation/filemanagement/file_api/file_api.gni") group("file_api_unittest") { testonly = true deps = [ + "class_atomicfile:class_atomicfile_test", "class_file:class_file_test", "filemgmt_libn_test:filemgmt_libn_test", "js:ani_file_environment_test", diff --git a/interfaces/test/unittest/class_atomicfile/BUILD.gn b/interfaces/test/unittest/class_atomicfile/BUILD.gn index 2b30daf8dfcd8fd560ce57cfd838905eb4b5b7f6..66a5ab538c29fca4e9c62a482d3385d9d1255b39 100644 --- a/interfaces/test/unittest/class_atomicfile/BUILD.gn +++ b/interfaces/test/unittest/class_atomicfile/BUILD.gn @@ -18,6 +18,7 @@ ohos_unittest("class_atomicfile_test") { module_out_path = "file_api/file_api" sources = [ + "${file_api_path}/interfaces/kits/js/src/common/file_helper/fd_guard.cpp", "${file_api_path}/interfaces/kits/js/src/mod_fs/class_atomicfile/atomicfile_n_exporter.cpp", "${file_api_path}/interfaces/test/unittest/class_atomicfile/mock/atomicfile_mock.cpp", "${file_api_path}/interfaces/test/unittest/class_atomicfile/atomicfile_mock_test.cpp",