diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 20:45:08 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 20:45:08 +0000 |
commit | d8fef52b071be812fd8a0f7ebea6c577bdb38592 (patch) | |
tree | 3ad1d267a3d978e4e68c0f3c49c3781e155e1a3f /base/data_pack_unittest.cc | |
parent | 19e0ff7bf0b74a121d52a75b1d883222d266b789 (diff) | |
download | chromium_src-d8fef52b071be812fd8a0f7ebea6c577bdb38592.zip chromium_src-d8fef52b071be812fd8a0f7ebea6c577bdb38592.tar.gz chromium_src-d8fef52b071be812fd8a0f7ebea6c577bdb38592.tar.bz2 |
Modify DataPacks so they can return RefCountedStaticMemory objects.
(This is in preparation for a very large reworking of BrowserThemeProvider).
BUG=http://crbug.com/21121
Review URL: http://codereview.chromium.org/338027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/data_pack_unittest.cc')
-rw-r--r-- | base/data_pack_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/data_pack_unittest.cc b/base/data_pack_unittest.cc index 7c2cfeb..a62acf0 100644 --- a/base/data_pack_unittest.cc +++ b/base/data_pack_unittest.cc @@ -25,17 +25,17 @@ TEST_F(DataPackTest, Load) { ASSERT_TRUE(pack.Load(data_path_)); base::StringPiece data; - ASSERT_TRUE(pack.Get(4, &data)); + ASSERT_TRUE(pack.GetStringPiece(4, &data)); EXPECT_EQ("this is id 4", data); - ASSERT_TRUE(pack.Get(6, &data)); + ASSERT_TRUE(pack.GetStringPiece(6, &data)); EXPECT_EQ("this is id 6", data); // Try reading zero-length data blobs, just in case. - ASSERT_TRUE(pack.Get(1, &data)); + ASSERT_TRUE(pack.GetStringPiece(1, &data)); EXPECT_EQ(0U, data.length()); - ASSERT_TRUE(pack.Get(10, &data)); + ASSERT_TRUE(pack.GetStringPiece(10, &data)); EXPECT_EQ(0U, data.length()); // Try looking up an invalid key. - ASSERT_FALSE(pack.Get(140, &data)); + ASSERT_FALSE(pack.GetStringPiece(140, &data)); } |