| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/mac/foundation_util.h" | 5 #include "base/mac/foundation_util.h" |
| 6 #import "base/mac/scoped_nsobject.h" | 6 #import "base/mac/scoped_nsobject.h" |
| 7 #import "ios/chrome/test/base/scoped_block_swizzler.h" | 7 #include "ios/chrome/test/base/scoped_block_swizzler.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "testing/gtest_mac.h" | 9 #import "testing/gtest_mac.h" |
| 10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
| 11 | 11 |
| 12 // Class containing two methods that will be swizzled by the unittests. | 12 // Class containing two methods that will be swizzled by the unittests. |
| 13 @interface ScopedBlockSwizzlerTestClass : NSObject | 13 @interface ScopedBlockSwizzlerTestClass : NSObject |
| 14 | 14 |
| 15 // An NSString property that will be accessed by one of the swizzled methods. | 15 // An NSString property that will be accessed by one of the swizzled methods. |
| 16 @property(nonatomic, copy) NSString* value; | 16 @property(nonatomic, copy) NSString* value; |
| 17 | 17 |
| 18 + (NSString*)classMethodToSwizzle; | 18 + (NSString*)classMethodToSwizzle; |
| 19 - (NSString*)instanceMethodToSwizzle; | 19 - (NSString*)instanceMethodToSwizzle; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 + (NSString*)classMethodToSwizzle { | 95 + (NSString*)classMethodToSwizzle { |
| 96 return kOriginalClassValue; | 96 return kOriginalClassValue; |
| 97 } | 97 } |
| 98 | 98 |
| 99 - (NSString*)instanceMethodToSwizzle { | 99 - (NSString*)instanceMethodToSwizzle { |
| 100 return kOriginalInstanceValue; | 100 return kOriginalInstanceValue; |
| 101 } | 101 } |
| 102 | 102 |
| 103 @end | 103 @end |
| OLD | NEW |