Commit 1cd5cf75 authored by tfarina@chromium.org's avatar tfarina@chromium.org

Move dom_storage test data file from webkit/ to content/

BUG=338338
TEST=content_unittests
R=jam@chromium.org,jamesr@chromium.org
TBR=jamesr@chromium.org

Review URL: https://codereview.chromium.org/403453002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284348 0039d316-1c4b-4281-b951-d872f2087c98
parent 6897548b
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "base/files/scoped_temp_dir.h" #include "base/files/scoped_temp_dir.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "content/public/common/content_paths.h"
#include "sql/statement.h" #include "sql/statement.h"
#include "sql/test/scoped_error_ignorer.h" #include "sql/test/scoped_error_ignorer.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -309,11 +310,9 @@ TEST(DOMStorageDatabaseTest, TestSimpleRemoveOneValue) { ...@@ -309,11 +310,9 @@ TEST(DOMStorageDatabaseTest, TestSimpleRemoveOneValue) {
} }
TEST(DOMStorageDatabaseTest, TestCanOpenAndReadWebCoreDatabase) { TEST(DOMStorageDatabaseTest, TestCanOpenAndReadWebCoreDatabase) {
base::FilePath webcore_database; base::FilePath dir_test_data;
PathService::Get(base::DIR_SOURCE_ROOT, &webcore_database); ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data));
webcore_database = webcore_database.AppendASCII("webkit"); base::FilePath webcore_database = dir_test_data.AppendASCII("dom_storage");
webcore_database = webcore_database.AppendASCII("data");
webcore_database = webcore_database.AppendASCII("dom_storage");
webcore_database = webcore_database =
webcore_database.AppendASCII("webcore_test_database.localstorage"); webcore_database.AppendASCII("webcore_test_database.localstorage");
......
webcore_test_database.localstorage - This is a sample local storage database
generated by Chromium 17.0.963.38 beta (using the WebCore DOM Storage
backend). It is used in webkit/dom_storage/dom_storage_database_unittest.cc
to verify that the Chromium backend can read a WebCore generated database.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment