summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/image_store_unittest.cc
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2015-01-13 01:32:16 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-13 09:33:10 +0000
commit7cd3acb95c91ed9135c9ffad2852fd51921a5021 (patch)
tree98a12ae0e7df10e56d82e5f7383593591f897656 /components/enhanced_bookmarks/image_store_unittest.cc
parent494f1ea5e8cb9dea6b78cfb812e4e6a5841ab9b6 (diff)
downloadchromium_src-7cd3acb95c91ed9135c9ffad2852fd51921a5021.zip
chromium_src-7cd3acb95c91ed9135c9ffad2852fd51921a5021.tar.gz
chromium_src-7cd3acb95c91ed9135c9ffad2852fd51921a5021.tar.bz2
Fix ImageStoreUnitTest.GetSize on iOS
The test checks PersistentImageStore::GetStoreSizeInBytes() which returns the size of the SQLite database. Apparently on iOS 7.1.2 running on iPod, the database file ends up taking less space (could be related to the size of the images also being smaller). Fix the bounds to account for that. BUG=388585 Review URL: https://codereview.chromium.org/844333002 Cr-Commit-Position: refs/heads/master@{#311247}
Diffstat (limited to 'components/enhanced_bookmarks/image_store_unittest.cc')
-rw-r--r--components/enhanced_bookmarks/image_store_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/enhanced_bookmarks/image_store_unittest.cc b/components/enhanced_bookmarks/image_store_unittest.cc
index 7e6aa7f..3724e08 100644
--- a/components/enhanced_bookmarks/image_store_unittest.cc
+++ b/components/enhanced_bookmarks/image_store_unittest.cc
@@ -245,7 +245,7 @@ TYPED_TEST(ImageStoreUnitTest, GetSize) {
}
if (this->use_persistent_store()) {
- EXPECT_GE(this->store_->GetStoreSizeInBytes(), 90 * 1024); // 90kb
+ EXPECT_GE(this->store_->GetStoreSizeInBytes(), 80 * 1024); // 80kb
EXPECT_LE(this->store_->GetStoreSizeInBytes(), 200 * 1024); // 200kb
} else {
EXPECT_GE(this->store_->GetStoreSizeInBytes(), 400 * 1024); // 400kb