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

Side by Side Diff: chrome/common/notification_observer_mock.h

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. Created 10 years, 4 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
« no previous file with comments | « chrome/common/chrome_plugin_util.h ('k') | chrome/common/notification_registrar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_
6 #define CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ 6 #define CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/common/notification_details.h"
10 #include "chrome/common/notification_observer.h" 9 #include "chrome/common/notification_observer.h"
11 #include "chrome/common/notification_source.h"
12 #include "chrome/common/notification_type.h" 10 #include "chrome/common/notification_type.h"
13 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
14 12
13 class NotificationDetails;
14 class NotificationSource;
15
15 class NotificationObserverMock : public NotificationObserver { 16 class NotificationObserverMock : public NotificationObserver {
16 public: 17 public:
17 NotificationObserverMock() {} 18 NotificationObserverMock() {}
18 virtual ~NotificationObserverMock() {} 19 virtual ~NotificationObserverMock() {}
19 20
20 MOCK_METHOD3(Observe, void(NotificationType type, 21 MOCK_METHOD3(Observe, void(NotificationType type,
21 const NotificationSource& source, 22 const NotificationSource& source,
22 const NotificationDetails& details)); 23 const NotificationDetails& details));
23 }; 24 };
24 25
25 #endif // CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ 26 #endif // CHROME_COMMON_NOTIFICATION_OBSERVER_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_plugin_util.h ('k') | chrome/common/notification_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698