Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: base/posix/file_descriptor_shuffle_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/pickle_unittest.cc ('k') | base/posix/unix_domain_socket_linux_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/posix/file_descriptor_shuffle.h" 5 #include "base/posix/file_descriptor_shuffle.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/googletest/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 {
16 16
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 TEST(FileDescriptorShuffleTest, Simple1WithFailure) { 273 TEST(FileDescriptorShuffleTest, Simple1WithFailure) {
274 InjectiveMultimap map; 274 InjectiveMultimap map;
275 FailingDelegate failing; 275 FailingDelegate failing;
276 map.push_back(InjectionArc(0, 1, false)); 276 map.push_back(InjectionArc(0, 1, false));
277 277
278 EXPECT_FALSE(PerformInjectiveMultimap(map, &failing)); 278 EXPECT_FALSE(PerformInjectiveMultimap(map, &failing));
279 } 279 }
280 280
281 } // namespace base 281 } // namespace base
OLDNEW
« no previous file with comments | « base/pickle_unittest.cc ('k') | base/posix/unix_domain_socket_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698