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

Unified Diff: ui/base/resource/data_pack_unittest.cc

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/resource/data_pack.cc ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/data_pack_unittest.cc
diff --git a/ui/base/resource/data_pack_unittest.cc b/ui/base/resource/data_pack_unittest.cc
index 1c0bd7a106653c5dc51521eb2022f9267e408d6e..7f137b65d433f36bcfbedea2282690e55d73cfa7 100644
--- a/ui/base/resource/data_pack_unittest.cc
+++ b/ui/base/resource/data_pack_unittest.cc
@@ -31,7 +31,7 @@ TEST(DataPackTest, Load) {
static_cast<int>(kSamplePakSize));
// Load the file through the data pack API.
- DataPack pack;
+ DataPack pack(ResourceHandle::kScaleFactor100x);
ASSERT_TRUE(pack.Load(data_path));
base::StringPiece data;
@@ -63,7 +63,7 @@ TEST(DataPackTest, LoadFileWithTruncatedHeader) {
data_path = data_path.Append(FILE_PATH_LITERAL(
"ui/base/test/data/data_pack_unittest/truncated-header.pak"));
- DataPack pack;
+ DataPack pack(ResourceHandle::kScaleFactor100x);
ASSERT_FALSE(pack.Load(data_path));
}
@@ -87,7 +87,7 @@ TEST_P(DataPackTest, Write) {
ASSERT_TRUE(DataPack::WritePack(file, resources, GetParam()));
// Now try to read the data back in.
- DataPack pack;
+ DataPack pack(ResourceHandle::kScaleFactor100x);
ASSERT_TRUE(pack.Load(file));
EXPECT_EQ(pack.GetTextEncodingType(), GetParam());
« no previous file with comments | « ui/base/resource/data_pack.cc ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698