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

Unified Diff: ios/chrome/browser/snapshots/snapshot_cache_unittest.mm

Issue 2660143002: Removing iPad Tab Switcher experimental flag. (Closed)
Patch Set: Rebased. Created 3 years, 10 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 | « ios/chrome/browser/snapshots/snapshot_cache_internal.h ('k') | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
diff --git a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
index 1e33eb09de9a3cf24e6f04b877e7175e1c1c3f34..4912f1b5b2320cc54163cd968059e723d62369c1 100644
--- a/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
+++ b/ios/chrome/browser/snapshots/snapshot_cache_unittest.mm
@@ -218,9 +218,6 @@ class SnapshotCacheTest : public PlatformTest {
TEST_F(SnapshotCacheTest, Cache) {
SnapshotCache* cache = GetSnapshotCache();
- if (![cache inMemoryCacheIsEnabled])
- return;
-
NSUInteger expectedCacheSize = kSessionCount;
if ([cache usesLRUCache])
expectedCacheSize = MIN(kSessionCount, [cache lruCacheMaxSize]);
@@ -361,13 +358,8 @@ TEST_F(SnapshotCacheTest, HandleMemoryWarning) {
TriggerMemoryWarning();
- if ([cache inMemoryCacheIsEnabled]) {
- EXPECT_EQ(YES, [cache hasImageInMemory:firstPinnedID]);
- EXPECT_EQ(YES, [cache hasImageInMemory:secondPinnedID]);
- } else {
- EXPECT_EQ(NO, [cache hasImageInMemory:firstPinnedID]);
- EXPECT_EQ(NO, [cache hasImageInMemory:secondPinnedID]);
- }
+ EXPECT_EQ(YES, [cache hasImageInMemory:firstPinnedID]);
+ EXPECT_EQ(YES, [cache hasImageInMemory:secondPinnedID]);
NSString* notPinnedID = [testSessions_ objectAtIndex:2];
EXPECT_FALSE([cache hasImageInMemory:notPinnedID]);
« no previous file with comments | « ios/chrome/browser/snapshots/snapshot_cache_internal.h ('k') | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698