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

Unified Diff: net/disk_cache/simple/simple_test_util.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/simple/simple_synchronous_entry.cc ('k') | net/disk_cache/simple/simple_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_test_util.h
diff --git a/net/disk_cache/simple/simple_test_util.h b/net/disk_cache/simple/simple_test_util.h
deleted file mode 100644
index ec9b64434c0db0985571f3372a4d286f9b77943e..0000000000000000000000000000000000000000
--- a/net/disk_cache/simple/simple_test_util.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_
-#define NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace disk_cache {
-namespace simple_util {
-
-// Immutable array with compile-time bound-checking.
-template <typename T, size_t Size>
-class ImmutableArray {
- public:
- static const size_t size = Size;
-
- ImmutableArray(const base::Callback<T (size_t index)>& initializer) {
- for (size_t i = 0; i < size; ++i)
- data_[i] = initializer.Run(i);
- }
-
- template <size_t Index>
- const T& at() const {
- static_assert(Index < size, "array out of bounds");
- return data_[Index];
- }
-
- private:
- T data_[size];
-};
-
-// Creates a corrupt file to be used in tests.
-bool CreateCorruptFileForTests(const std::string& key,
- const base::FilePath& cache_path);
-
-} // namespace simple_backend
-} // namespace disk_cache
-
-#endif // NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_
« no previous file with comments | « net/disk_cache/simple/simple_synchronous_entry.cc ('k') | net/disk_cache/simple/simple_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698