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

Side by Side Diff: chrome/browser/notifications/notification_test_util.cc

Issue 1509923002: Implement native web notifications for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 "chrome/browser/notifications/notification_test_util.h" 5 #include "chrome/browser/notifications/notification_test_util.h"
6 6
7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id)
8 : id_(id) {} 8 : id_(id) {}
9 9
10 MockNotificationDelegate::~MockNotificationDelegate() {} 10 MockNotificationDelegate::~MockNotificationDelegate() {}
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { 128 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) {
129 NOTIMPLEMENTED(); 129 NOTIMPLEMENTED();
130 return false; 130 return false;
131 } 131 }
132 132
133 void StubNotificationUIManager::CancelAll() { 133 void StubNotificationUIManager::CancelAll() {
134 for (const auto& pair : notifications_) 134 for (const auto& pair : notifications_)
135 pair.first.delegate()->Close(false /* by_user */); 135 pair.first.delegate()->Close(false /* by_user */);
136 notifications_.clear(); 136 notifications_.clear();
137 } 137 }
138
139 bool StubNotificationUIManager::AcceptNativeNotifications() {
140 return false;
141 ;
Peter Beverloo 2015/12/09 00:12:00 Don't empty statements cause compile errors?
Miguel Garcia 2015/12/10 20:16:30 Actually it didn't, thanks for spotting this one.
142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698