chromium/sandbox/linux/services/scoped_process_unittest.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.

#include "sandbox/linux/services/scoped_process.h"

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

#include "base/check.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/posix/eintr_wrapper.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "sandbox/linux/tests/unit_tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace sandbox {

namespace {

void DoExit() {}

void ExitWithCode(int exit_code) {}

void RaiseAndExit(int signal) {}

TEST(ScopedProcess, ScopedProcessNormalExit) {}

// Disable this test on Android, SIGABRT is funky there.
TEST(ScopedProcess, DISABLE_ON_ANDROID(ScopedProcessAbort)) {}

TEST(ScopedProcess, ScopedProcessSignaled) {}

TEST(ScopedProcess, DiesForReal) {}

TEST(ScopedProcess, SynchronizationBasic) {}

void SleepInMsAndWriteOneByte(int time_to_sleep, int fd) {}

TEST(ScopedProcess, SynchronizationWorks) {}

}  // namespace

}  // namespace sandbox