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

Unified Diff: net/disk_cache/entry_unittest.cc

Issue 12224017: Create a new disk_cache type, SHADER_CACHE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: net/disk_cache/entry_unittest.cc
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc
index 6438f2ec7e0e07685fa6f0b6232523593cb9a639..71f8a03a81825c7fe0e3227f727365ba4bb21963 100644
--- a/net/disk_cache/entry_unittest.cc
+++ b/net/disk_cache/entry_unittest.cc
@@ -656,6 +656,9 @@ void DiskCacheEntryTest::GetTimes() {
if (type_ == net::APP_CACHE) {
EXPECT_TRUE(entry->GetLastUsed() < t2);
EXPECT_TRUE(entry->GetLastModified() < t2);
+ } else if (type_ == net::SHADER_CACHE) {
+ EXPECT_TRUE(entry->GetLastUsed() < t3);
+ EXPECT_TRUE(entry->GetLastModified() < t3);
} else {
EXPECT_TRUE(entry->GetLastUsed() >= t3);
EXPECT_TRUE(entry->GetLastModified() < t3);
@@ -680,6 +683,12 @@ TEST_F(DiskCacheEntryTest, AppCacheGetTimes) {
GetTimes();
}
+TEST_F(DiskCacheEntryTest, ShaderCacheGetTimes) {
+ SetCacheType(net::SHADER_CACHE);
+ InitCache();
+ GetTimes();
+}
+
void DiskCacheEntryTest::GrowData() {
std::string key1("the first key");
disk_cache::Entry* entry;

Powered by Google App Engine
This is Rietveld 408576698