blob: a8564c467dbf77ea4805a07427276fd6940f7e8e [file] [log] [blame]
Vitaly Buka4615e0d2015-10-14 15:35:12 -07001// Copyright 2015 The Weave Authors. All rights reserved.
Vitaly Bukafc42b312015-07-24 14:04:31 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Vitaly Buka0f6b2ec2015-08-20 15:35:19 -07005#include <weave/test/mock_command.h>
Vitaly Bukafc42b312015-07-24 14:04:31 -07006
7#include <memory>
8#include <string>
9
10#include <base/values.h>
11
Stefan Sauer2d16dfa2015-09-25 17:08:35 +020012#include "src/commands/unittest_utils.h"
Vitaly Bukafc42b312015-07-24 14:04:31 -070013
14namespace weave {
Vitaly Buka0f6b2ec2015-08-20 15:35:19 -070015namespace test {
Vitaly Bukafc42b312015-07-24 14:04:31 -070016
17std::unique_ptr<base::DictionaryValue> MockCommand::GetParameters() const {
18 return CreateDictionaryValue(MockGetParameters());
19}
20
21std::unique_ptr<base::DictionaryValue> MockCommand::GetProgress() const {
22 return CreateDictionaryValue(MockGetProgress());
23}
24
25std::unique_ptr<base::DictionaryValue> MockCommand::GetResults() const {
26 return CreateDictionaryValue(MockGetResults());
27}
28
Vitaly Buka0f6b2ec2015-08-20 15:35:19 -070029} // namespace test
Vitaly Bukafc42b312015-07-24 14:04:31 -070030} // namespace weave