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 { | |
15 return NULL; | |
16 } | |
17 | |
18 // TODO(peter): |notification_| should be initialized with the correct origin. | 14 // TODO(peter): |notification_| should be initialized with the correct origin. |
19 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin) | 15 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin) |
20 : notification_(GURL(), | 16 : notification_(GURL(), |
21 base::string16(), | 17 base::string16(), |
22 base::string16(), | 18 base::string16(), |
23 gfx::Image(), | 19 gfx::Image(), |
24 base::string16(), | 20 base::string16(), |
25 base::string16(), | 21 base::string16(), |
26 new MockNotificationDelegate("stub")), | 22 new MockNotificationDelegate("stub")), |
27 profile_(NULL), | 23 profile_(NULL), |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool StubNotificationUIManager::CancelAllBySourceOrigin( | 75 bool StubNotificationUIManager::CancelAllBySourceOrigin( |
80 const GURL& source_origin) { | 76 const GURL& source_origin) { |
81 return false; | 77 return false; |
82 } | 78 } |
83 | 79 |
84 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { | 80 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { |
85 return false; | 81 return false; |
86 } | 82 } |
87 | 83 |
88 void StubNotificationUIManager::CancelAll() {} | 84 void StubNotificationUIManager::CancelAll() {} |
OLD | NEW |