| OLD | NEW |
| 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() {} |
| 11 | 11 |
| 12 std::string MockNotificationDelegate::id() const { return id_; } | 12 std::string MockNotificationDelegate::id() const { return id_; } |
| 13 | 13 |
| 14 content::WebContents* MockNotificationDelegate::GetWebContents() const { | 14 content::WebContents* MockNotificationDelegate::GetWebContents() const { |
| 15 return NULL; | 15 return NULL; |
| 16 } | 16 } |
| 17 | 17 |
| 18 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin) | 18 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin) |
| 19 : notification_(GURL(), | 19 : notification_(GURL(), |
| 20 GURL(), | 20 gfx::Image(), |
| 21 base::string16(), | 21 base::string16(), |
| 22 base::string16(), | 22 base::string16(), |
| 23 blink::WebTextDirectionDefault, | 23 blink::WebTextDirectionDefault, |
| 24 base::string16(), | 24 base::string16(), |
| 25 base::string16(), | 25 base::string16(), |
| 26 new MockNotificationDelegate("stub")), | 26 new MockNotificationDelegate("stub")), |
| 27 welcome_origin_(welcome_origin), | 27 welcome_origin_(welcome_origin), |
| 28 welcomed_(false), | 28 welcomed_(false), |
| 29 added_notifications_(0U) {} | 29 added_notifications_(0U) {} |
| 30 | 30 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool StubNotificationUIManager::CancelAllBySourceOrigin( | 72 bool StubNotificationUIManager::CancelAllBySourceOrigin( |
| 73 const GURL& source_origin) { | 73 const GURL& source_origin) { |
| 74 return false; | 74 return false; |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool StubNotificationUIManager::CancelAllByProfile(Profile* profile) { | 77 bool StubNotificationUIManager::CancelAllByProfile(Profile* profile) { |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void StubNotificationUIManager::CancelAll() {} | 81 void StubNotificationUIManager::CancelAll() {} |
| OLD | NEW |