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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/confirm_quit_panel_controller_unittest.mm
diff --git a/chrome/browser/cocoa/confirm_quit_panel_controller_unittest.mm b/chrome/browser/cocoa/confirm_quit_panel_controller_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..fddf164ae7e9fb27e2ac1f765559a5aa0efadc79
--- /dev/null
+++ b/chrome/browser/cocoa/confirm_quit_panel_controller_unittest.mm
@@ -0,0 +1,26 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/cocoa/confirm_quit_panel_controller.h"
+
+#import "chrome/browser/cocoa/cocoa_test_helper.h"
+
+namespace {
+
+class ConfirmQuitPanelControllerTest : public CocoaTest {
+ public:
+ ConfirmQuitPanelControllerTest() : controller_(nil) {
+ }
+
+ ConfirmQuitPanelController* controller_; // Weak, owns self.
+};
+
+
+TEST_F(ConfirmQuitPanelControllerTest, ShowAndDismiss) {
+ controller_ = [[ConfirmQuitPanelController alloc] init];
+ [controller_ showWindow:nil];
+ [controller_ dismissPanel]; // Releases self.
+}
+
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698