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

Unified Diff: content/browser/dom_storage/dom_storage_database_unittest.cc

Issue 403453002: Move dom_storage test data file from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 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 | « no previous file | content/test/data/dom_storage/webcore_test_database.localstorage » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_database_unittest.cc
diff --git a/content/browser/dom_storage/dom_storage_database_unittest.cc b/content/browser/dom_storage/dom_storage_database_unittest.cc
index e20e399ec6cf8d8bdd66427fb05f09b493ce5af2..2593878ce92736e5fa8ff73636d758961ba38a25 100644
--- a/content/browser/dom_storage/dom_storage_database_unittest.cc
+++ b/content/browser/dom_storage/dom_storage_database_unittest.cc
@@ -9,6 +9,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
+#include "content/public/common/content_paths.h"
#include "sql/statement.h"
#include "sql/test/scoped_error_ignorer.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -309,11 +310,9 @@ TEST(DOMStorageDatabaseTest, TestSimpleRemoveOneValue) {
}
TEST(DOMStorageDatabaseTest, TestCanOpenAndReadWebCoreDatabase) {
- base::FilePath webcore_database;
- PathService::Get(base::DIR_SOURCE_ROOT, &webcore_database);
- webcore_database = webcore_database.AppendASCII("webkit");
- webcore_database = webcore_database.AppendASCII("data");
- webcore_database = webcore_database.AppendASCII("dom_storage");
+ base::FilePath dir_test_data;
+ ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data));
+ base::FilePath webcore_database = dir_test_data.AppendASCII("dom_storage");
webcore_database =
webcore_database.AppendASCII("webcore_test_database.localstorage");
« no previous file with comments | « no previous file | content/test/data/dom_storage/webcore_test_database.localstorage » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698