!272 【OpenHarmony开源贡献者计划2022】修改头文件的引用顺序

Merge pull request !272 from linuxKernel/zyj/fix
This commit is contained in:
openharmony_ci 2022-06-17 07:08:33 +00:00 committed by Gitee
commit 32e5941279
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
12 changed files with 44 additions and 27 deletions

View File

@ -17,10 +17,10 @@
#include <cerrno>
#include "token_setproc.h"
#ifdef WITH_SELINUX
#include "hap_restorecon.h"
#endif
#include "token_setproc.h"
void SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client)
{

View File

@ -15,15 +15,18 @@
#include "appspawn_server.h"
#include <cerrno>
#include <ctime>
#include <cstdarg>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
#include <cerrno>
#include <cstdarg>
#include <ctime>
#include "hilog/log.h"
#include "securec.h"
namespace {
AppspawnLogLevel g_logLevel = AppspawnLogLevel::INFO;
constexpr int MAX_LOG_SIZE = 1024;

View File

@ -13,14 +13,15 @@
* limitations under the License.
*/
#include "appspawn_adapter.h"
#include <dlfcn.h>
#include <algorithm>
#include <ctime>
#include <dlfcn.h>
#include <map>
#include <string>
#include "appspawn_adapter.h"
struct RenderProcessNode {
RenderProcessNode(time_t now, int exit):recordTime_(now), exitStatus_(exit) {}
time_t recordTime_;

View File

@ -15,13 +15,14 @@
#include "appspawn_adapter.h"
#include <string>
#include <unistd.h>
#include <string>
#include <vector>
#include "hilog/log.h"
#include "json_utils.h"
#include "sandbox_utils.h"
#include "hilog/log.h"
using namespace std;
using namespace OHOS;

View File

@ -15,9 +15,10 @@
#include "appspawn_socket.h"
#include <sys/socket.h>
#include <cerrno>
#include <iostream>
#include <sys/socket.h>
#include "hilog/log.h"
#include "pubdef.h"

View File

@ -15,9 +15,10 @@
#include "client_socket.h"
#include <sys/socket.h>
#include <cerrno>
#include <iostream>
#include <sys/socket.h>
#include "hilog/log.h"
#include "securec.h"

View File

@ -15,13 +15,13 @@
#include <fcntl.h>
#include <unistd.h>
#include <cstdio>
#include "gtest/gtest.h"
#include "securec.h"
#include "app_spawn_client.h"
#include "hilog/log.h"
#include "securec.h"
using namespace testing::ext;
using namespace OHOS;

View File

@ -12,17 +12,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <sys/types.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <ctime>
#include <vector>
#include "gtest/gtest.h"
#include "appspawn_message.h"
#include "appspawn_service.h"
#include "appspawn_msg.h"
#include "appspawn_service.h"
using namespace testing::ext;
@ -390,4 +393,4 @@ HWTEST_F(AppSpawnLiteTest, SetContentFunctionTest_001, TestSize.Level0)
free(liteClient);
GTEST_LOG_(INFO) << "SetContentFunctionTest_001 end";
}
} // namespace OHOS
} // namespace OHOS

View File

@ -14,8 +14,9 @@
*/
#include <gtest/gtest.h>
#include <cstring>
#include <cerrno>
#include <cstring>
// redefine private and protected since testcase need to invoke and test private function
#define private public

View File

@ -12,10 +12,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <memory>
#include <gtest/gtest.h>
#include <cstring>
#include <cerrno>
#include <memory>
// redefine private and protected since testcase need to invoke and test private function
#define private public
@ -24,9 +26,9 @@
#undef private
#undef protected
#include "securec.h"
#include "appspawn_adapter.h"
#include "appspawn_server.h"
#include "securec.h"
using namespace testing;
using namespace testing::ext;

View File

@ -13,9 +13,10 @@
* limitations under the License.
*/
#include <memory>
#include <gtest/gtest.h>
#include <memory>
// redefine private and protected since testcase need to invoke and test private function
#define private public
#define protected public

View File

@ -14,23 +14,26 @@
*/
#include "sandbox_utils.h"
#include "json_utils.h"
#include "hilog/log.h"
#include "securec.h"
#include <dirent.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <cerrno>
#include <dirent.h>
#include <dlfcn.h>
#include <fstream>
#include <sstream>
#include "hilog/log.h"
#include "json_utils.h"
#include "securec.h"
using namespace std;
using namespace OHOS;
using namespace OHOS::HiviewDFX;