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_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
9 #import "chrome/browser/ui/cocoa/infobar_container_controller.h" | 9 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" |
10 #include "chrome/browser/ui/cocoa/infobar_test_helper.h" | 10 #include "chrome/browser/ui/cocoa/infobars/infobar_test_helper.h" |
11 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" | 11 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class InfoBarContainerControllerTest : public CocoaTest { | 17 class InfoBarContainerControllerTest : public CocoaTest { |
18 virtual void SetUp() { | 18 virtual void SetUp() { |
19 CocoaTest::SetUp(); | 19 CocoaTest::SetUp(); |
20 resizeDelegate_.reset([[ViewResizerPong alloc] init]); | 20 resizeDelegate_.reset([[ViewResizerPong alloc] init]); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 [controller_ addInfoBar:&alertDelegate animate:NO]; | 87 [controller_ addInfoBar:&alertDelegate animate:NO]; |
88 [controller_ addInfoBar:&linkDelegate animate:NO]; | 88 [controller_ addInfoBar:&linkDelegate animate:NO]; |
89 [controller_ addInfoBar:&confirmDelegate animate:NO]; | 89 [controller_ addInfoBar:&confirmDelegate animate:NO]; |
90 EXPECT_EQ(3U, [[view subviews] count]); | 90 EXPECT_EQ(3U, [[view subviews] count]); |
91 | 91 |
92 [controller_ removeAllInfoBars]; | 92 [controller_ removeAllInfoBars]; |
93 EXPECT_EQ(0U, [[view subviews] count]); | 93 EXPECT_EQ(0U, [[view subviews] count]); |
94 } | 94 } |
95 } // namespace | 95 } // namespace |
OLD | NEW |