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

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: Better fix for OnExternalCacheHit 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/histogram_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/entry_unittest.cc
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc
index 6e680349a7a79383e7a8c46bc6acff7fb24decb8..4b7e2bcbc30a4639c17a16ea63b8218a77dbbcd5 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;
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/histogram_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698