OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/scoped_nsautorelease_pool.h" | |
8 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
9 #include "chrome/browser/cocoa/browser_test_helper.h" | 8 #include "chrome/browser/cocoa/browser_test_helper.h" |
10 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 9 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
11 #import "chrome/browser/cocoa/infobar_container_controller.h" | 10 #import "chrome/browser/cocoa/infobar_container_controller.h" |
12 #include "chrome/browser/cocoa/infobar_test_helper.h" | 11 #include "chrome/browser/cocoa/infobar_test_helper.h" |
13 #import "chrome/browser/cocoa/view_resizer_pong.h" | 12 #import "chrome/browser/cocoa/view_resizer_pong.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
16 | 15 |
17 namespace { | 16 namespace { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 90 |
92 [controller_ addInfoBar:&alertDelegate animate:NO]; | 91 [controller_ addInfoBar:&alertDelegate animate:NO]; |
93 [controller_ addInfoBar:&linkDelegate animate:NO]; | 92 [controller_ addInfoBar:&linkDelegate animate:NO]; |
94 [controller_ addInfoBar:&confirmDelegate animate:NO]; | 93 [controller_ addInfoBar:&confirmDelegate animate:NO]; |
95 EXPECT_EQ(3U, [[view subviews] count]); | 94 EXPECT_EQ(3U, [[view subviews] count]); |
96 | 95 |
97 [controller_ removeAllInfoBars]; | 96 [controller_ removeAllInfoBars]; |
98 EXPECT_EQ(0U, [[view subviews] count]); | 97 EXPECT_EQ(0U, [[view subviews] count]); |
99 } | 98 } |
100 } // namespace | 99 } // namespace |
OLD | NEW |