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

Side by Side Diff: ui/app_list/cocoa/app_list_view_window_unittest.mm

Issue 11784034: Skeleton for app_list on OSX, and refactoring for enable_app_list=1 on OS=="mac". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable AppListControllerBrowserTest.ShowAndShutdown on Windows for now Created 7 years, 11 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_nsobject.h"
6 #import "testing/gtest_mac.h"
7 #import "ui/app_list/cocoa/app_list_view_window.h"
8 #import "ui/base/test/ui_cocoa_test_helper.h"
9
10 // Unit test harness for Cocoa-specific interactions with the app_list.
11 class AppListViewWindowTest : public ui::CocoaTest {
12 public:
13 AppListViewWindowTest() {
14 Init();
15 window_.reset([[AppListViewWindow alloc] initAsBubble]);
16 }
17
18 scoped_nsobject<AppListViewWindow> window_;
19
20 private:
21 DISALLOW_COPY_AND_ASSIGN(AppListViewWindowTest);
22 };
23
24 // Test showing, hiding and closing the AppListViewWindow with no content.
25 TEST_F(AppListViewWindowTest, ShowHideCloseRelease) {
26 [window_ makeKeyAndOrderFront:nil];
27 [window_ close];
28 [window_ setReleasedWhenClosed:YES];
29 [window_ close];
30 window_.reset(nil);
sail 2013/01/09 22:09:53 don't need nil here
tapted 2013/01/10 00:07:36 Done.
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698