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

Side by Side Diff: chrome/test/values_test_util.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/test/ui_test_utils.h ('k') | chrome/test/webdriver/automation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
14 16
15 namespace test { 17 namespace test {
16 18
17 // All the functions below expect that the value for the given key in 19 // All the functions below expect that the value for the given key in
18 // the given dictionary equals the given expected value. 20 // the given dictionary equals the given expected value.
19 21
20 void ExpectDictBooleanValue(bool expected_value, 22 void ExpectDictBooleanValue(bool expected_value,
21 const DictionaryValue& value, 23 const base::DictionaryValue& value,
22 const std::string& key); 24 const std::string& key);
23 25
24 void ExpectDictDictionaryValue(const DictionaryValue& expected_value, 26 void ExpectDictDictionaryValue(const base::DictionaryValue& expected_value,
25 const DictionaryValue& value, 27 const base::DictionaryValue& value,
26 const std::string& key); 28 const std::string& key);
27 29
28 void ExpectDictIntegerValue(int expected_value, 30 void ExpectDictIntegerValue(int expected_value,
29 const DictionaryValue& value, 31 const base::DictionaryValue& value,
30 const std::string& key); 32 const std::string& key);
31 33
32 void ExpectDictListValue(const ListValue& expected_value, 34 void ExpectDictListValue(const base::ListValue& expected_value,
33 const DictionaryValue& value, 35 const base::DictionaryValue& value,
34 const std::string& key); 36 const std::string& key);
35 37
36 void ExpectDictStringValue(const std::string& expected_value, 38 void ExpectDictStringValue(const std::string& expected_value,
37 const DictionaryValue& value, 39 const base::DictionaryValue& value,
38 const std::string& key); 40 const std::string& key);
39 41
40 // Takes ownership of |actual|. 42 // Takes ownership of |actual|.
41 void ExpectStringValue(const std::string& expected_str, StringValue* actual); 43 void ExpectStringValue(const std::string& expected_str,
44 base::StringValue* actual);
42 45
43 } // namespace test 46 } // namespace test
44 47
45 #endif // CHROME_TEST_VALUES_TEST_UTIL_H_ 48 #endif // CHROME_TEST_VALUES_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/test/ui_test_utils.h ('k') | chrome/test/webdriver/automation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698