| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/cocoa/run_loop_testing.h" | 5 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 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/include/gtest/gtest.h" |
| 11 | 11 |
| 12 @interface TestDelayed : NSObject { | 12 @interface TestDelayed : NSObject { |
| 13 @private | 13 @private |
| 14 BOOL didWork_; | 14 BOOL didWork_; |
| 15 TestDelayed* next_; | 15 TestDelayed* next_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 [tester setNext:nested]; | 50 [tester setNext:nested]; |
| 51 | 51 |
| 52 EXPECT_FALSE([tester didWork]); | 52 EXPECT_FALSE([tester didWork]); |
| 53 EXPECT_FALSE([nested didWork]); | 53 EXPECT_FALSE([nested didWork]); |
| 54 | 54 |
| 55 chrome::testing::NSRunLoopRunAllPending(); | 55 chrome::testing::NSRunLoopRunAllPending(); |
| 56 | 56 |
| 57 EXPECT_TRUE([tester didWork]); | 57 EXPECT_TRUE([tester didWork]); |
| 58 EXPECT_TRUE([nested didWork]); | 58 EXPECT_TRUE([nested didWork]); |
| 59 } | 59 } |
| OLD | NEW |