Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/browser/cocoa/content_blocked_bubble_controller_unittest.mm

Issue 650124: Mac: Move prefs around in preparation for the content settings window. (Closed)
Patch Set: done? Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698