aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo Cheung <uioptt24@gmail.com>2023-10-20 01:35:21 +0800
committerHo Cheung <uioptt24@gmail.com>2023-10-20 01:35:21 +0800
commit9b894306ec3b28cea46e84c32b56773a98c483da (patch)
treefdc9f56f24555d34fb2b15e612c6a020a89995c3
parentb2b87a64ac6c189303aab7727be4665392efddc1 (diff)
downloadlibjpeg-turbo-upstream-main.tar.gz
Rename DIR_SOURCE_ROOT to DIR_SRC_TEST_DATA_ROOT in //libjpeg_turboupstream-main
Bug: chromium:1264897 Change-Id: Ifef89083895c8fcc7decd9cfd88b0ca6145f11fd
-rw-r--r--gtest/gtest-utils.cpp2
-rw-r--r--gtest/tjbench-gtest-wrapper.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/gtest/gtest-utils.cpp b/gtest/gtest-utils.cpp
index b6df7aba..b64fb888 100644
--- a/gtest/gtest-utils.cpp
+++ b/gtest/gtest-utils.cpp
@@ -40,7 +40,7 @@ std::string GetTargetDirectory() {
#endif
void GetTestFilePath(base::FilePath* path, const std::string filename) {
- ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, path));
+ ASSERT_TRUE(base::PathService::Get(base::DIR_SRC_TEST_DATA_ROOT, path));
*path = path->AppendASCII("third_party");
*path = path->AppendASCII("libjpeg_turbo");
*path = path->AppendASCII("testimages");
diff --git a/gtest/tjbench-gtest-wrapper.cpp b/gtest/tjbench-gtest-wrapper.cpp
index 700b1994..cdb671ae 100644
--- a/gtest/tjbench-gtest-wrapper.cpp
+++ b/gtest/tjbench-gtest-wrapper.cpp
@@ -60,7 +60,7 @@ class TJBenchTest : public
static void SetUpTestSuite() {
base::FilePath resource_path;
- ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, &resource_path));
+ ASSERT_TRUE(base::PathService::Get(base::DIR_SRC_TEST_DATA_ROOT, &resource_path));
resource_path = resource_path.AppendASCII("third_party");
resource_path = resource_path.AppendASCII("libjpeg_turbo");
resource_path = resource_path.AppendASCII("testimages");
@@ -130,7 +130,7 @@ class TJBenchTestMerged : public
static void SetUpTestSuite() {
base::FilePath resource_path;
- ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, &resource_path));
+ ASSERT_TRUE(base::PathService::Get(base::DIR_SRC_TEST_DATA_ROOT, &resource_path));
resource_path = resource_path.AppendASCII("third_party");
resource_path = resource_path.AppendASCII("libjpeg_turbo");
resource_path = resource_path.AppendASCII("testimages");