OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 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 CHROME_TEST_UI_JAVASCRIPT_TEST_UTIL_H_ | |
6 #define CHROME_TEST_UI_JAVASCRIPT_TEST_UTIL_H_ | |
7 | |
8 #include <string> | |
9 #include <map> | |
10 | |
11 // This file provides a common set of utilities that are useful to UI tests | |
12 // that interact with JavaScript. | |
13 | |
14 // Given a JSON encoded representation of a dictionary, parses the string and | |
15 // fills in a map with the results. No attempt is made to clear the map. | |
16 // Returns a bool indicating success or failure of the operation. | |
17 bool JsonDictionaryToMap(const std::string& json, | |
18 std::map<std::string, std::string>* results); | |
19 | |
20 #endif // CHROME_TEST_UI_JAVASCRIPT_TEST_UTIL_H_ | |
OLD | NEW |