summaryrefslogtreecommitdiffstats
path: root/base/values_unittest.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-14 03:32:17 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-14 03:32:17 +0000
commit8b6e84a68798718a3dd66bc82bdbed50cff79f00 (patch)
treef69809fda4ad0423d8d5ac9d7f2030efbd8ab4f2 /base/values_unittest.cc
parenta60153f0ada9823286a54b8b8852526e3e21a5a1 (diff)
downloadchromium_src-8b6e84a68798718a3dd66bc82bdbed50cff79f00.zip
chromium_src-8b6e84a68798718a3dd66bc82bdbed50cff79f00.tar.gz
chromium_src-8b6e84a68798718a3dd66bc82bdbed50cff79f00.tar.bz2
Remove deprecated wstring DictionaryValue::SetWithoutPathExpansion().
BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3121017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values_unittest.cc')
-rw-r--r--base/values_unittest.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/base/values_unittest.cc b/base/values_unittest.cc
index 81bd675..a3e7353 100644
--- a/base/values_unittest.cc
+++ b/base/values_unittest.cc
@@ -494,22 +494,6 @@ TEST_F(ValuesTest, DictionaryWithoutPathExpansion) {
EXPECT_EQ(Value::TYPE_NULL, value4->GetType());
}
-// TODO(viettrungluu): deprecate:
-TEST_F(ValuesTest, DictionaryWithoutPathExpansionDeprecated) {
- DictionaryValue dict;
- dict.Set(L"this.is.expanded", Value::CreateNullValue());
- dict.SetWithoutPathExpansion(L"this.isnt.expanded", Value::CreateNullValue());
-
- EXPECT_FALSE(dict.HasKey(L"this.is.expanded"));
- EXPECT_TRUE(dict.HasKey(L"this"));
- Value* value1;
- EXPECT_TRUE(dict.Get(L"this", &value1));
-
- EXPECT_TRUE(dict.HasKey(L"this.isnt.expanded"));
- Value* value3;
- EXPECT_FALSE(dict.Get(L"this.isnt.expanded", &value3));
-}
-
TEST_F(ValuesTest, DeepCopy) {
DictionaryValue original_dict;
Value* original_null = Value::CreateNullValue();
@@ -936,7 +920,7 @@ TEST_F(ValuesTest, RemoveEmptyChildrenDeprecated) {
// Remove empty lists and dictionaries.
root->Set(L"empty_dict", new DictionaryValue);
root->Set(L"empty_list", new ListValue);
- root->SetWithoutPathExpansion(L"a.b.c.d.e", new DictionaryValue);
+ root->SetWithoutPathExpansion("a.b.c.d.e", new DictionaryValue);
root.reset(root->DeepCopyWithoutEmptyChildren());
EXPECT_TRUE(root->empty());