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

Side by Side Diff: base/mac/scoped_objc_class_swizzler_unittest.mm

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, 1 month 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/mac/scoped_nsobject_unittest.mm ('k') | base/mac/scoped_sending_event_unittest.mm » ('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 2014 The Chromium Authors. All rights reserved. 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 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 #import "base/mac/scoped_objc_class_swizzler.h" 5 #import "base/mac/scoped_objc_class_swizzler.h"
6 6
7 #import "base/mac/scoped_nsobject.h" 7 #import "base/mac/scoped_nsobject.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/googletest/include/gtest/gtest.h"
9 9
10 @interface ObjCClassSwizzlerTestOne : NSObject 10 @interface ObjCClassSwizzlerTestOne : NSObject
11 + (NSInteger)function; 11 + (NSInteger)function;
12 - (NSInteger)method; 12 - (NSInteger)method;
13 - (NSInteger)modifier; 13 - (NSInteger)modifier;
14 @end 14 @end
15 15
16 @interface ObjCClassSwizzlerTestTwo : NSObject 16 @interface ObjCClassSwizzlerTestTwo : NSObject
17 + (NSInteger)function; 17 + (NSInteger)function;
18 - (NSInteger)method; 18 - (NSInteger)method;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 IMP original = swizzler.GetOriginalImplementation(); 157 IMP original = swizzler.GetOriginalImplementation();
158 id expected_result = reinterpret_cast<id>(3); 158 id expected_result = reinterpret_cast<id>(3);
159 EXPECT_EQ(expected_result, original(child, @selector(method))); 159 EXPECT_EQ(expected_result, original(child, @selector(method)));
160 } 160 }
161 161
162 EXPECT_EQ(3, [child method]); 162 EXPECT_EQ(3, [child method]);
163 } 163 }
164 164
165 } // namespace mac 165 } // namespace mac
166 } // namespace base 166 } // namespace base
OLDNEW
« no previous file with comments | « base/mac/scoped_nsobject_unittest.mm ('k') | base/mac/scoped_sending_event_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698