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

Side by Side Diff: ui/message_center/notification_list_unittest.cc

Issue 12052057: Introduces 'context' param to NotifierSettingsView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/message_center/notification_list.h" 5 #include "ui/message_center/notification_list.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 26 matching lines...) Expand all
37 37
38 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE { 38 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE {
39 } 39 }
40 40
41 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE { 41 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE {
42 } 42 }
43 43
44 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE { 44 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE {
45 } 45 }
46 46
47 virtual void ShowNotificationSettingsDialog(
48 gfx::NativeView context) OVERRIDE {
49 }
50
47 virtual void OnNotificationClicked(const std::string& id) OVERRIDE { 51 virtual void OnNotificationClicked(const std::string& id) OVERRIDE {
48 } 52 }
49 53
50 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE { 54 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE {
51 } 55 }
52 56
53 virtual void OnButtonClicked(const std::string& id, 57 virtual void OnButtonClicked(const std::string& id,
54 int button_index) OVERRIDE { 58 int button_index) OVERRIDE {
55 } 59 }
56 60
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 421
418 notification_list()->SetQuietMode(false); 422 notification_list()->SetQuietMode(false);
419 AddNotification(NULL); 423 AddNotification(NULL);
420 EXPECT_EQ(4u, notification_list()->NotificationCount()); 424 EXPECT_EQ(4u, notification_list()->NotificationCount());
421 EXPECT_EQ(1u, GetPopupCounts()); 425 EXPECT_EQ(1u, GetPopupCounts());
422 426
423 // TODO(mukai): Add test of quiet mode with expiration. 427 // TODO(mukai): Add test of quiet mode with expiration.
424 } 428 }
425 429
426 } // namespace message_center 430 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698