Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: tools/json_schema_compiler/test/test_util.h

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698