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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
6 #define TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
7
8 #include <map>
9
10 #include "base/memory/linked_ptr.h"
11 #include "base/memory/scoped_ptr.h"
12
13 namespace base {
14 class DictionaryValue;
15 class Value;
16 }
17
18 namespace json_schema_compiler {
19 namespace test_util {
20
21 // Converts a map of string->Value |values| to a corresponding DictionaryValue.
22 scoped_ptr<base::DictionaryValue> ValueMapToDictionary(
23 const std::map<std::string, linked_ptr<base::Value> >& values);
24
25 // Converts a DictionaryValue |dict| to a corresponding map of string->Value.
26 std::map<std::string, linked_ptr<base::Value> > DictionaryToValueMap(
27 const base::DictionaryValue& dict);
28
29 } // namespace test_util
30 } // namespace json_schema_compiler
31
32 #endif // TOOLS_JSON_SCHEMA_COMPILER_TEST_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698