// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/posix_file_descriptor_info_impl.h" #include <fcntl.h> #include <unistd.h> #include <utility> #include "base/posix/eintr_wrapper.h" #include "testing/gtest/include/gtest/gtest.h" namespace { // Get a safe file descriptor for test purposes. // TODO(morrita) Merge with things in file_descriptor_set_posix_unittest.cc int GetSafeFd() { … } // Returns true if fd was already closed. Closes fd if not closed. // TODO(morrita) Merge with things in file_descriptor_set_posix_unittest.cc bool VerifyClosed(int fd) { … } } // namespace namespace content { PosixFileDescriptorInfoTest; TEST_F(PosixFileDescriptorInfoTest, Transfer) { … } TEST_F(PosixFileDescriptorInfoTest, Share) { … } TEST_F(PosixFileDescriptorInfoTest, GetMappingWithIDAdjustment) { … } } // namespace content