summaryrefslogtreecommitdiffstats
path: root/sync/notifier/invalidation_state_tracker.cc
blob: 335f3b2a61db1460d973d155a7d0247c74f47ac1 (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
// 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.

#include "sync/notifier/invalidation_state_tracker.h"

namespace syncer {

InvalidationState::InvalidationState()
    : version(kint64min),
      expected(AckHandle::InvalidAckHandle()),
      current(AckHandle::InvalidAckHandle()) {
}

InvalidationState::~InvalidationState() {
}

bool operator==(const InvalidationState& lhs, const InvalidationState& rhs) {
  return lhs.version == rhs.version &&
      lhs.expected.Equals(rhs.expected) &&
      lhs.current.Equals(rhs.current);
}

}  // namespace syncer