2014-02-26 19:53:16 +00:00
|
|
|
// Copyright (c) 2010 The Chromium OS 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 METRICS_PERSISTENT_INTEGER_MOCK_H_
|
|
|
|
#define METRICS_PERSISTENT_INTEGER_MOCK_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
2014-07-09 23:35:23 +00:00
|
|
|
#include "metrics/persistent_integer.h"
|
2014-02-26 19:53:16 +00:00
|
|
|
|
|
|
|
namespace chromeos_metrics {
|
|
|
|
|
|
|
|
class PersistentIntegerMock : public PersistentInteger {
|
|
|
|
public:
|
2014-07-09 23:35:23 +00:00
|
|
|
explicit PersistentIntegerMock(const std::string& name)
|
|
|
|
: PersistentInteger(name) {}
|
2014-08-07 07:54:59 +00:00
|
|
|
MOCK_METHOD1(Add, void(int64_t count));
|
2014-02-26 19:53:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chromeos_metrics
|
|
|
|
|
|
|
|
#endif // METRICS_PERSISTENT_INTEGER_MOCK_H_
|