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

Side by Side Diff: sync/notifier/mock_sync_notifier_observer.h

Issue 10700154: Remove #pragma once from sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « sync/notifier/invalidation_util.h ('k') | sync/notifier/non_blocking_invalidation_notifier.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) 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 #ifndef SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ 5 #ifndef SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
6 #define SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ 6 #define SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
7 #pragma once
8 7
9 #include <string> 8 #include <string>
10 9
11 #include "sync/notifier/sync_notifier_observer.h" 10 #include "sync/notifier/sync_notifier_observer.h"
12 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
13 12
14 namespace syncer { 13 namespace syncer {
15 14
16 class MockSyncNotifierObserver : public SyncNotifierObserver { 15 class MockSyncNotifierObserver : public SyncNotifierObserver {
17 public: 16 public:
18 MockSyncNotifierObserver(); 17 MockSyncNotifierObserver();
19 virtual ~MockSyncNotifierObserver(); 18 virtual ~MockSyncNotifierObserver();
20 19
21 MOCK_METHOD0(OnNotificationsEnabled, void()); 20 MOCK_METHOD0(OnNotificationsEnabled, void());
22 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason)); 21 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason));
23 MOCK_METHOD2(OnIncomingNotification, 22 MOCK_METHOD2(OnIncomingNotification,
24 void(const syncer::ModelTypePayloadMap&, 23 void(const syncer::ModelTypePayloadMap&,
25 IncomingNotificationSource)); 24 IncomingNotificationSource));
26 }; 25 };
27 26
28 } // namespace syncer 27 } // namespace syncer
29 28
30 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ 29 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_util.h ('k') | sync/notifier/non_blocking_invalidation_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698