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

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

Issue 4220005: [Mac] Add a confirm to quit experiment to about:flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/cocoa/confirm_quit_panel_controller.h"
6
7 #import "chrome/browser/cocoa/cocoa_test_helper.h"
8
9 namespace {
10
11 class ConfirmQuitPanelControllerTest : public CocoaTest {
12 public:
13 ConfirmQuitPanelControllerTest() : controller_(nil) {
14 }
15
16 ConfirmQuitPanelController* controller_; // Weak, owns self.
17 };
18
19
20 TEST_F(ConfirmQuitPanelControllerTest, ShowAndDismiss) {
21 controller_ = [[ConfirmQuitPanelController alloc] init];
22 [controller_ showWindow:nil];
23 [controller_ dismissPanel]; // Releases self.
24 }
25
26 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698