summaryrefslogtreecommitdiffstats
path: root/sync/test/null_directory_change_delegate.h
blob: 4a2799e9a6ca2f1280648977c943fb4024b4551e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_
#define SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_

#include <stdint.h>

#include <vector>

#include "base/compiler_specific.h"
#include "sync/syncable/directory_change_delegate.h"

namespace syncer {
namespace syncable {

// DirectoryChangeDelegate that does nothing in all delegate methods.
class NullDirectoryChangeDelegate : public DirectoryChangeDelegate {
 public:
  ~NullDirectoryChangeDelegate() override;

  void HandleCalculateChangesChangeEventFromSyncApi(
      const ImmutableWriteTransactionInfo& write_transaction_info,
      BaseTransaction* trans,
      std::vector<int64_t>* entries_changed) override;
  void HandleCalculateChangesChangeEventFromSyncer(
      const ImmutableWriteTransactionInfo& write_transaction_info,
      BaseTransaction* trans,
      std::vector<int64_t>* entries_changed) override;
  ModelTypeSet HandleTransactionEndingChangeEvent(
      const ImmutableWriteTransactionInfo& write_transaction_info,
      BaseTransaction* trans) override;
  void HandleTransactionCompleteChangeEvent(
      ModelTypeSet models_with_changes) override;
};

}  // namespace syncable
}  // namespace syncer

#endif  // SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_