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 |