| 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 #import "chrome/browser/ui/cocoa/first_run_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/first_run_bubble_controller.h" | 
| 6 | 6 | 
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> | 
| 8 | 8 | 
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" | 
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" | 
| 11 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 11 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 
| 12 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" | 
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" | 
| 14 | 14 | 
| 15 namespace { | 15 namespace { | 
| 16 | 16 | 
| 17 class FirstRunBubbleControllerTest : public CocoaProfileTest { | 17 class FirstRunBubbleControllerTest : public CocoaProfileTest { | 
| 18 }; | 18 }; | 
| 19 | 19 | 
| 20 // Check that the bubble doesn't crash or leak. | 20 // Check that the bubble doesn't crash or leak. | 
| 21 TEST_F(FirstRunBubbleControllerTest, Init) { | 21 TEST_F(FirstRunBubbleControllerTest, Init) { | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 34       showForView:[parent.get() contentView] | 34       showForView:[parent.get() contentView] | 
| 35            offset:NSMakePoint(300, 300) | 35            offset:NSMakePoint(300, 300) | 
| 36           browser:NULL | 36           browser:NULL | 
| 37           profile:profile()]; | 37           profile:profile()]; | 
| 38   EXPECT_TRUE(controller != nil); | 38   EXPECT_TRUE(controller != nil); | 
| 39   EXPECT_TRUE([[controller window] isVisible]); | 39   EXPECT_TRUE([[controller window] isVisible]); | 
| 40   [parent.get() close]; | 40   [parent.get() close]; | 
| 41 } | 41 } | 
| 42 | 42 | 
| 43 }  // namespace | 43 }  // namespace | 
| OLD | NEW | 
|---|