| OLD | NEW |
| 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/ios/crb_protocol_observers.h" | 5 #import "base/ios/crb_protocol_observers.h" |
| 6 #include "base/ios/weak_nsobject.h" | 6 #include "base/ios/weak_nsobject.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac/scoped_nsautorelease_pool.h" | 8 #include "base/mac/scoped_nsautorelease_pool.h" |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 11 #include "testing/gtest_mac.h" | 11 #include "testing/gtest_mac.h" |
| 12 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
| 13 | 13 |
| 14 @protocol TestObserver | 14 @protocol TestObserver |
| 15 | 15 |
| 16 @required | 16 @required |
| 17 - (void)requiredMethod; | 17 - (void)requiredMethod; |
| 18 - (void)reset; | 18 - (void)reset; |
| 19 | 19 |
| 20 @optional | 20 @optional |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 - (void)nestedMutateByAddingObserver:(id<TestObserver>)observer { | 282 - (void)nestedMutateByAddingObserver:(id<TestObserver>)observer { |
| 283 [_observers mutateByAddingObserver:observer]; | 283 [_observers mutateByAddingObserver:observer]; |
| 284 } | 284 } |
| 285 | 285 |
| 286 - (void)nestedMutateByRemovingObserver:(id<TestObserver>)observer { | 286 - (void)nestedMutateByRemovingObserver:(id<TestObserver>)observer { |
| 287 [_observers mutateByRemovingObserver:observer]; | 287 [_observers mutateByRemovingObserver:observer]; |
| 288 } | 288 } |
| 289 | 289 |
| 290 @end | 290 @end |
| OLD | NEW |