chromium/sandbox/linux/tests/test_utils.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "sandbox/linux/tests/test_utils.h"

#include <errno.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

#include "base/check_op.h"
#include "base/memory/page_size.h"
#include "base/posix/eintr_wrapper.h"

namespace sandbox {

bool TestUtils::CurrentProcessHasChildren() {}

void TestUtils::HandlePostForkReturn(pid_t pid) {}

void* TestUtils::MapPagesOrDie(size_t num_pages) {}

void TestUtils::MprotectLastPageOrDie(char* addr, size_t num_pages) {}

}  // namespace sandbox