| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/webdriver/utility_functions.h" | 5 #include "chrome/test/webdriver/utility_functions.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <wchar.h> | 8 #include <wchar.h> |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 std::wstring print_valuetype(Value::ValueType e) { | 30 std::wstring print_valuetype(Value::ValueType e) { |
| 31 switch (e) { | 31 switch (e) { |
| 32 case Value::TYPE_NULL: | 32 case Value::TYPE_NULL: |
| 33 return L"NULL "; | 33 return L"NULL "; |
| 34 case Value::TYPE_BOOLEAN: | 34 case Value::TYPE_BOOLEAN: |
| 35 return L"BOOL"; | 35 return L"BOOL"; |
| 36 case Value::TYPE_INTEGER: | 36 case Value::TYPE_INTEGER: |
| 37 return L"INT"; | 37 return L"INT"; |
| 38 case Value::TYPE_REAL: | 38 case Value::TYPE_DOUBLE: |
| 39 return L"REAL"; | 39 return L"DOUBLE"; |
| 40 case Value::TYPE_STRING: | 40 case Value::TYPE_STRING: |
| 41 return L"STRING"; | 41 return L"STRING"; |
| 42 case Value::TYPE_BINARY: | 42 case Value::TYPE_BINARY: |
| 43 return L"BIN"; | 43 return L"BIN"; |
| 44 case Value::TYPE_DICTIONARY: | 44 case Value::TYPE_DICTIONARY: |
| 45 return L"DICT"; | 45 return L"DICT"; |
| 46 case Value::TYPE_LIST: | 46 case Value::TYPE_LIST: |
| 47 return L"LIST"; | 47 return L"LIST"; |
| 48 default: | 48 default: |
| 49 return L"ERROR"; | 49 return L"ERROR"; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 77 delete params; | 77 delete params; |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 | 80 |
| 81 *dict = static_cast<DictionaryValue*>(params); | 81 *dict = static_cast<DictionaryValue*>(params); |
| 82 return true; | 82 return true; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace webdriver | 85 } // namespace webdriver |
| 86 | 86 |
| OLD | NEW |