Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/content_blocked_bubble_controller.h" | |
|
viettrungluu
2010/02/22 00:57:40
Shouldn't this go before even the #import <Cocoa/C
| |
| 8 | |
| 7 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 8 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 9 #import "chrome/browser/cocoa/content_blocked_bubble_controller.h" | |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 class ContentBlockedBubbleControllerTest : public CocoaTest { | 15 class ContentBlockedBubbleControllerTest : public CocoaTest { |
| 15 }; | 16 }; |
| 16 | 17 |
| 17 // Check that the bubble doesn't crash or leak for any settings type | 18 // Check that the bubble doesn't crash or leak for any settings type |
| 18 TEST_F(ContentBlockedBubbleControllerTest, Init) { | 19 TEST_F(ContentBlockedBubbleControllerTest, Init) { |
| 19 for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { | 20 for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 40 profile:NULL]; | 41 profile:NULL]; |
| 41 EXPECT_TRUE(controller != nil); | 42 EXPECT_TRUE(controller != nil); |
| 42 [controller showWindow:nil]; | 43 [controller showWindow:nil]; |
| 43 [parent.get() close]; | 44 [parent.get() close]; |
| 44 } | 45 } |
| 45 } | 46 } |
| 46 | 47 |
| 47 } // namespace | 48 } // namespace |
| 48 | 49 |
| 49 | 50 |
| OLD | NEW |