chromium/base/posix/file_descriptor_shuffle_unittest.cc

// 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 "base/posix/file_descriptor_shuffle.h"

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

namespace {

// 'Duplicated' file descriptors start at this number
const int kDuplicateBase =;

}  // namespace

namespace base {

struct Action {};

class InjectionTracer : public InjectionDelegate {};

TEST(FileDescriptorShuffleTest, Empty) {}

TEST(FileDescriptorShuffleTest, Noop) {}

TEST(FileDescriptorShuffleTest, NoopAndClose) {}

TEST(FileDescriptorShuffleTest, Simple1) {}

TEST(FileDescriptorShuffleTest, Simple2) {}

TEST(FileDescriptorShuffleTest, Simple3) {}

TEST(FileDescriptorShuffleTest, Simple4) {}

TEST(FileDescriptorShuffleTest, Cycle) {}

TEST(FileDescriptorShuffleTest, CycleAndClose1) {}

TEST(FileDescriptorShuffleTest, CycleAndClose2) {}

TEST(FileDescriptorShuffleTest, CycleAndClose3) {}

TEST(FileDescriptorShuffleTest, Fanout) {}

TEST(FileDescriptorShuffleTest, FanoutAndClose1) {}

TEST(FileDescriptorShuffleTest, FanoutAndClose2) {}

TEST(FileDescriptorShuffleTest, FanoutAndClose3) {}

TEST(FileDescriptorShuffleTest, DuplicateClash) {}

TEST(FileDescriptorShuffleTest, DuplicateClashBad) {}

TEST(FileDescriptorShuffleTest, DuplicateClashBadWithClose) {}

class FailingDelegate : public InjectionDelegate {};

TEST(FileDescriptorShuffleTest, EmptyWithFailure) {}

TEST(FileDescriptorShuffleTest, NoopWithFailure) {}

TEST(FileDescriptorShuffleTest, Simple1WithFailure) {}

}  // namespace base