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

Unified Diff: net/disk_cache/flash/storage_unittest.cc

Issue 182093002: Remove the flash specific disk cache backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/flash/storage.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/storage_unittest.cc
diff --git a/net/disk_cache/flash/storage_unittest.cc b/net/disk_cache/flash/storage_unittest.cc
deleted file mode 100644
index e8a1e3f18c8f125dc8062d75d6fe29d6b3585453..0000000000000000000000000000000000000000
--- a/net/disk_cache/flash/storage_unittest.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/files/file_path.h"
-#include "base/files/scoped_temp_dir.h"
-#include "net/base/io_buffer.h"
-#include "net/disk_cache/disk_cache_test_util.h"
-#include "net/disk_cache/flash/flash_cache_test_base.h"
-#include "net/disk_cache/flash/storage.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-const int32 kSizes[] = {512, 1024, 4096, 133, 1333, 13333};
-const int32 kOffsets[] = {0, 1, 3333, 125, 12443, 4431};
-
-} // namespace
-
-TEST_F(FlashCacheTest, StorageReadWrite) {
- disk_cache::Storage storage(path_, kStorageSize);
- EXPECT_TRUE(storage.Init());
-
- for (size_t i = 0; i < arraysize(kOffsets); ++i) {
- int32 size = kSizes[i];
- int32 offset = kOffsets[i];
-
- scoped_refptr<net::IOBuffer> write_buffer(new net::IOBuffer(size));
- scoped_refptr<net::IOBuffer> read_buffer(new net::IOBuffer(size));
-
- CacheTestFillBuffer(write_buffer->data(), size, false);
-
- bool rv = storage.Write(write_buffer->data(), size, offset);
- EXPECT_TRUE(rv);
-
- rv = storage.Read(read_buffer->data(), size, offset);
- EXPECT_TRUE(rv);
-
- EXPECT_EQ(0, memcmp(read_buffer->data(), write_buffer->data(), size));
- }
-}
« no previous file with comments | « net/disk_cache/flash/storage.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698