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

Side by Side Diff: chrome/browser/ui/cocoa/first_run_bubble_controller_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/find_pasteboard_unittest.mm ('k') | chrome/browser/ui/cocoa/floating_bar_backing_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698