| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/file_descriptor_shuffle.h" | 5 #include "base/posix/file_descriptor_shuffle.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace { | 8 namespace { |
| 9 | 9 |
| 10 // 'Duplicated' file descriptors start at this number | 10 // 'Duplicated' file descriptors start at this number |
| 11 const int kDuplicateBase = 1000; | 11 const int kDuplicateBase = 1000; |
| 12 | 12 |
| 13 } // namespace | 13 } // namespace |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 TEST(FileDescriptorShuffleTest, Simple1WithFailure) { | 279 TEST(FileDescriptorShuffleTest, Simple1WithFailure) { |
| 280 InjectiveMultimap map; | 280 InjectiveMultimap map; |
| 281 FailingDelegate failing; | 281 FailingDelegate failing; |
| 282 map.push_back(InjectionArc(0, 1, false)); | 282 map.push_back(InjectionArc(0, 1, false)); |
| 283 | 283 |
| 284 EXPECT_FALSE(PerformInjectiveMultimap(map, &failing)); | 284 EXPECT_FALSE(PerformInjectiveMultimap(map, &failing)); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace base | 287 } // namespace base |
| OLD | NEW |