test_utils_unittest.cc 525 B

123456789101112131415161718192021222324
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "sandbox/linux/tests/test_utils.h"
  5. #include <sys/types.h>
  6. #include <unistd.h>
  7. #include "testing/gtest/include/gtest/gtest.h"
  8. namespace sandbox {
  9. namespace {
  10. // Check that HandlePostForkReturn works.
  11. TEST(TestUtils, HandlePostForkReturn) {
  12. pid_t pid = fork();
  13. TestUtils::HandlePostForkReturn(pid);
  14. }
  15. } // namespace
  16. } // namespace sandbox