| Index: tools/json_schema_compiler/test/test_util.h
|
| diff --git a/tools/json_schema_compiler/test/test_util.h b/tools/json_schema_compiler/test/test_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..42e6ff5e8e49c53464b1ef5f736401d93c7bcc5b
|
| --- /dev/null
|
| +++ b/tools/json_schema_compiler/test/test_util.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 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 TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
|
| +#define TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
|
| +
|
| +#include <map>
|
| +
|
| +#include "base/memory/linked_ptr.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +namespace base {
|
| +class DictionaryValue;
|
| +class Value;
|
| +}
|
| +
|
| +namespace json_schema_compiler {
|
| +namespace test_util {
|
| +
|
| +// Converts a map of string->Value |values| to a corresponding DictionaryValue.
|
| +scoped_ptr<base::DictionaryValue> ValueMapToDictionary(
|
| + const std::map<std::string, linked_ptr<base::Value> >& values);
|
| +
|
| +// Converts a DictionaryValue |dict| to a corresponding map of string->Value.
|
| +std::map<std::string, linked_ptr<base::Value> > DictionaryToValueMap(
|
| + const base::DictionaryValue& dict);
|
| +
|
| +} // namespace test_util
|
| +} // namespace json_schema_compiler
|
| +
|
| +#endif // TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
|
|
|