blob: 4d6d8835d917d743bd645d5a602ef9c39471f49d [file] [log] [blame]
// Copyright 2013 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 COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_MOCK_DEBUG_INFO_GETTER_H_
#define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_MOCK_DEBUG_INFO_GETTER_H_
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "components/sync/engine_impl/cycle/debug_info_getter.h"
#include "components/sync/protocol/sync.pb.h"
namespace syncer {
// A mock implementation of DebugInfoGetter to be used in tests. Events added by
// AddDebugEvent are accessible via DebugInfoGetter methods.
class MockDebugInfoGetter : public DebugInfoGetter {
public:
MockDebugInfoGetter();
~MockDebugInfoGetter() override;
// DebugInfoGetter implementation.
void GetDebugInfo(sync_pb::DebugInfo* debug_info) override;
void ClearDebugInfo() override;
void AddDebugEvent();
private:
sync_pb::DebugInfo debug_info_;
DISALLOW_COPY_AND_ASSIGN(MockDebugInfoGetter);
};
} // namespace syncer
#endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_MOCK_DEBUG_INFO_GETTER_H_