root/sync/api/sync_error_factory_mock.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// 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_API_SYNC_ERROR_FACTORY_MOCK_H_
#define SYNC_API_SYNC_ERROR_FACTORY_MOCK_H_

#include "sync/api/sync_error_factory.h"

#include "testing/gmock/include/gmock/gmock.h"

namespace syncer {

class SyncErrorFactoryMock : public SyncErrorFactory {
 public:
  SyncErrorFactoryMock();
  virtual ~SyncErrorFactoryMock();

  MOCK_METHOD2(CreateAndUploadError, SyncError(
      const tracked_objects::Location& location,
      const std::string& message));
};

}  // namespace syncer

#endif  // SYNC_API_SYNC_ERROR_FACTORY_MOCK_H_

/* [<][>][^][v][top][bottom][index][help] */