summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/tests/test_utils_unittest.cc
blob: 0f86e616e9ba2c9453152d74c2a8b6bd99917d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

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

#include <sys/types.h>
#include <unistd.h>

#include "testing/gtest/include/gtest/gtest.h"

namespace sandbox {

namespace {

// Check that HandlePostForkReturn works.
TEST(TestUtils, HandlePostForkReturn) {
  pid_t pid = fork();
  TestUtils::HandlePostForkReturn(pid);
}

}  // namespace

}  // namespace sandbox