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

Unified Diff: components/json_schema/json_schema_validator_unittest_base.cc

Issue 22807004: Moved chrome/common/json_schema to components/json_schema. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed android isolates Created 7 years, 4 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: components/json_schema/json_schema_validator_unittest_base.cc
diff --git a/chrome/common/json_schema/json_schema_validator_unittest_base.cc b/components/json_schema/json_schema_validator_unittest_base.cc
similarity index 98%
rename from chrome/common/json_schema/json_schema_validator_unittest_base.cc
rename to components/json_schema/json_schema_validator_unittest_base.cc
index 0f87a48e45e332910d8e9a5cb39e2acb52e2acfd..2e6e46c83004211faf4e620e52359f9d4a3f5e39 100644
--- a/chrome/common/json_schema/json_schema_validator_unittest_base.cc
+++ b/components/json_schema/json_schema_validator_unittest_base.cc
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/json_schema/json_schema_validator_unittest_base.h"
+#include "components/json_schema/json_schema_validator_unittest_base.h"
#include <cfloat>
#include <cmath>
#include <limits>
+#include "base/base_paths.h"
#include "base/file_util.h"
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
@@ -15,9 +16,8 @@
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/json_schema/json_schema_constants.h"
-#include "chrome/common/json_schema/json_schema_validator.h"
+#include "components/json_schema/json_schema_constants.h"
+#include "components/json_schema/json_schema_validator.h"
namespace schema = json_schema_constants;
@@ -27,8 +27,12 @@ namespace {
base::Value* LoadValue(const std::string& filename) {
base::FilePath path;
- PathService::Get(chrome::DIR_TEST_DATA, &path);
- path = path.AppendASCII("json_schema_validator").AppendASCII(filename);
+ PathService::Get(base::DIR_SOURCE_ROOT, &path);
+ path = path.AppendASCII("components")
+ .AppendASCII("test")
+ .AppendASCII("data")
+ .AppendASCII("json_schema")
+ .AppendASCII(filename);
EXPECT_TRUE(base::PathExists(path));
std::string error_message;
« no previous file with comments | « components/json_schema/json_schema_validator_unittest_base.h ('k') | components/test/data/json_schema/array_tuple_schema.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698