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

Unified Diff: chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc

Issue 24208003: Add PNACL_CACHE cache backend type, and allow larger files for this type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « chrome/browser/nacl_host/pnacl_translation_cache.cc ('k') | net/base/cache_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc
diff --git a/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc b/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc
index e6cb0892b74f8a95fd14d5c539c3f7c7073243f1..df98b3d3ec877b54fa9c6f38689c45ae165cb640 100644
--- a/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc
+++ b/chrome/browser/nacl_host/pnacl_translation_cache_unittest.cc
@@ -53,7 +53,7 @@ void PnaclTranslationCacheTest::InitBackend(bool in_mem) {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
}
// Use the private init method so we can control the size
- int rv = cache_->Init(in_mem ? net::MEMORY_CACHE : net::DISK_CACHE,
+ int rv = cache_->Init(in_mem ? net::MEMORY_CACHE : net::PNACL_CACHE,
temp_dir_.path(),
in_mem ? kMaxMemCacheSize : kTestDiskCacheSize,
init_cb.callback());
@@ -120,7 +120,7 @@ std::string PnaclTranslationCacheTest::GetNexe(const std::string& key) {
static const std::string test_key("1");
static const std::string test_store_val("testnexe");
-static const int kLargeNexeSize = 2 * 1024 * 1024;
+static const int kLargeNexeSize = 8 * 1024 * 1024;
TEST(PnaclTranslationCacheKeyTest, CacheKeyTest) {
nacl::PnaclCacheInfo info;
« no previous file with comments | « chrome/browser/nacl_host/pnacl_translation_cache.cc ('k') | net/base/cache_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698