| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/message_center/cocoa/tray_view_controller.h" | 5 #import "ui/message_center/cocoa/tray_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #import "ui/base/test/ui_cocoa_test_helper.h" | 11 #import "ui/base/test/ui_cocoa_test_helper.h" |
| 12 #include "ui/message_center/fake_notifier_settings_provider.h" | 12 #include "ui/message_center/fake_notifier_settings_provider.h" |
| 13 #include "ui/message_center/message_center.h" | 13 #include "ui/message_center/message_center.h" |
| 14 #include "ui/message_center/message_center_impl.h" | 14 #include "ui/message_center/message_center_impl.h" |
| 15 #include "ui/message_center/message_center_style.h" | 15 #include "ui/message_center/message_center_style.h" |
| 16 #include "ui/message_center/notification.h" | 16 #include "ui/message_center/notification.h" |
| 17 #include "ui/message_center/notifier_settings.h" | 17 #include "ui/message_center/notifier_settings.h" |
| 18 | 18 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 EXPECT_LT(trayHeight, NSHeight([[tray_ view] frame])); | 231 EXPECT_LT(trayHeight, NSHeight([[tray_ view] frame])); |
| 232 | 232 |
| 233 [tray_ hideSettings:nil]; | 233 [tray_ hideSettings:nil]; |
| 234 EXPECT_EQ(1, provider.closed_called_count()); | 234 EXPECT_EQ(1, provider.closed_called_count()); |
| 235 | 235 |
| 236 // The tray should be back at its previous height now. | 236 // The tray should be back at its previous height now. |
| 237 EXPECT_EQ(trayHeight, NSHeight([[tray_ view] frame])); | 237 EXPECT_EQ(trayHeight, NSHeight([[tray_ view] frame])); |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace message_center | 240 } // namespace message_center |
| OLD | NEW |