| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_VALUES_TEST_UTIL_H_ | 5 #ifndef CHROME_TEST_VALUES_TEST_UTIL_H_ |
| 6 #define CHROME_TEST_VALUES_TEST_UTIL_H_ | 6 #define CHROME_TEST_VALUES_TEST_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 namespace base { |
| 11 class DictionaryValue; | 12 class DictionaryValue; |
| 12 class ListValue; | 13 class ListValue; |
| 13 class StringValue; | 14 class StringValue; |
| 15 } |
| 16 |
| 17 using base::DictionaryValue; |
| 18 using base::ListValue; |
| 19 using base::StringValue; |
| 14 | 20 |
| 15 namespace test { | 21 namespace test { |
| 16 | 22 |
| 17 // All the functions below expect that the value for the given key in | 23 // All the functions below expect that the value for the given key in |
| 18 // the given dictionary equals the given expected value. | 24 // the given dictionary equals the given expected value. |
| 19 | 25 |
| 20 void ExpectDictBooleanValue(bool expected_value, | 26 void ExpectDictBooleanValue(bool expected_value, |
| 21 const DictionaryValue& value, | 27 const DictionaryValue& value, |
| 22 const std::string& key); | 28 const std::string& key); |
| 23 | 29 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 void ExpectDictStringValue(const std::string& expected_value, | 42 void ExpectDictStringValue(const std::string& expected_value, |
| 37 const DictionaryValue& value, | 43 const DictionaryValue& value, |
| 38 const std::string& key); | 44 const std::string& key); |
| 39 | 45 |
| 40 // Takes ownership of |actual|. | 46 // Takes ownership of |actual|. |
| 41 void ExpectStringValue(const std::string& expected_str, StringValue* actual); | 47 void ExpectStringValue(const std::string& expected_str, StringValue* actual); |
| 42 | 48 |
| 43 } // namespace test | 49 } // namespace test |
| 44 | 50 |
| 45 #endif // CHROME_TEST_VALUES_TEST_UTIL_H_ | 51 #endif // CHROME_TEST_VALUES_TEST_UTIL_H_ |
| OLD | NEW |