blob: 5aa28f827b434c16a87cf31f9e63c09a18d07532 [file] [log] [blame]
// Copyright 2017 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.
#include "thd/source/fake_source.h"
namespace thd {
FakeSource::FakeSource(int64_t value, bool success)
: value_(value), success_(success) {}
bool FakeSource::ReadValue(int64_t* value_out) {
if (success_)
*value_out = value_;
return success_;
}
} // namespace thd