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

Unified Diff: ui/base/resource/data_pack_unittest.cc

Issue 288323003: ui: Fix the path of DIR_TEST_DATA key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no assert_true Created 6 years, 7 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 | ui/base/ui_base_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/data_pack_unittest.cc
diff --git a/ui/base/resource/data_pack_unittest.cc b/ui/base/resource/data_pack_unittest.cc
index 1840d7095093ee9feaa005caa5733c9b77c55999..60e2e26b6c06b5b492c6689858c77ddeef4b5d5f 100644
--- a/ui/base/resource/data_pack_unittest.cc
+++ b/ui/base/resource/data_pack_unittest.cc
@@ -10,6 +10,7 @@
#include "base/strings/string_piece.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/data_pack.h"
+#include "ui/base/ui_base_paths.h"
namespace ui {
@@ -98,9 +99,10 @@ INSTANTIATE_TEST_CASE_P(WriteUTF16, DataPackTest, ::testing::Values(
TEST(DataPackTest, LoadFileWithTruncatedHeader) {
base::FilePath data_path;
- PathService::Get(base::DIR_SOURCE_ROOT, &data_path);
- data_path = data_path.Append(FILE_PATH_LITERAL(
- "ui/base/test/data/data_pack_unittest/truncated-header.pak"));
+ // TODO(tfarina): This fails on ios_dbg_simulator. Investigate and add
+ // ASSERT_TRUE to PathService::Get() call again.
+ PathService::Get(UI_DIR_TEST_DATA, &data_path);
+ data_path = data_path.AppendASCII("data_pack_unittest/truncated-header.pak");
DataPack pack(SCALE_FACTOR_100P);
ASSERT_FALSE(pack.LoadFromPath(data_path));
« no previous file with comments | « no previous file | ui/base/ui_base_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698