• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
7 #pragma once
8 
9 #include <string>
10 
11 #include "chrome/browser/sync/notifier/sync_notifier_observer.h"
12 #include "testing/gmock/include/gmock/gmock.h"
13 
14 namespace sync_notifier {
15 
16 class MockSyncNotifierObserver : public SyncNotifierObserver {
17  public:
18   MockSyncNotifierObserver();
19   virtual ~MockSyncNotifierObserver();
20 
21   MOCK_METHOD1(OnIncomingNotification,
22                void(const syncable::ModelTypePayloadMap&));
23   MOCK_METHOD1(OnNotificationStateChange, void(bool));
24   MOCK_METHOD1(StoreState, void(const std::string&));
25 };
26 
27 }  // namespace sync_notifier
28 
29 #endif  // CHROME_BROWSER_SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_
30