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

Unified Diff: content/test/test_file_set.cc

Issue 183343002: Move test_file_set to content/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: content/test/test_file_set.cc
diff --git a/webkit/browser/fileapi/test_file_set.cc b/content/test/test_file_set.cc
similarity index 76%
rename from webkit/browser/fileapi/test_file_set.cc
rename to content/test/test_file_set.cc
index a762e338e6ef4c850ab8acd9865b23e10bf94d64..24ef0285a80b386ddc08c1590bd6222fc34cadfe 100644
--- a/webkit/browser/fileapi/test_file_set.cc
+++ b/content/test/test_file_set.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/browser/fileapi/test_file_set.h"
+#include "content/test/test_file_set.h"
#include <string>
@@ -12,11 +12,9 @@
#include "base/rand_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace fileapi {
+namespace content {
-namespace test {
-
-const TestCaseRecord kRegularTestCases[] = {
+const FileSystemTestCaseRecord kRegularFileSystemTestCases[] = {
{true, FILE_PATH_LITERAL("dir a"), 0},
{true, FILE_PATH_LITERAL("dir a/dir A"), 0},
{true, FILE_PATH_LITERAL("dir a/dir d"), 0},
@@ -37,10 +35,11 @@ const TestCaseRecord kRegularTestCases[] = {
{false, FILE_PATH_LITERAL("dir a/dir d/dir e/dir g/file 3"), 50},
};
-const size_t kRegularTestCaseSize = arraysize(kRegularTestCases);
+const size_t kRegularFileSystemTestCaseSize =
+ arraysize(kRegularFileSystemTestCases);
-void SetUpOneTestCase(const base::FilePath& root_path,
- const TestCaseRecord& test_case) {
+void SetUpOneFileSystemTestCase(const base::FilePath& root_path,
+ const FileSystemTestCaseRecord& test_case) {
base::FilePath path = root_path.Append(test_case.path);
if (test_case.is_directory) {
ASSERT_TRUE(base::CreateDirectory(path));
@@ -58,13 +57,11 @@ void SetUpOneTestCase(const base::FilePath& root_path,
}
-void SetUpRegularTestCases(const base::FilePath& root_path) {
- for (size_t i = 0; i < arraysize(kRegularTestCases); ++i) {
+void SetUpRegularFileSystemTestCases(const base::FilePath& root_path) {
+ for (size_t i = 0; i < arraysize(kRegularFileSystemTestCases); ++i) {
SCOPED_TRACE(testing::Message() << "Creating kRegularTestCases " << i);
- SetUpOneTestCase(root_path, kRegularTestCases[i]);
+ SetUpOneFileSystemTestCase(root_path, kRegularFileSystemTestCases[i]);
}
}
-} // namespace test
-
-} // namespace fileapi
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698