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

Unified Diff: chrome/test/ui/ui_layout_test.cc

Issue 9820005: Move PathService's DIR_LAYOUT_TESTS from chrome to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove indexed_db_uitest changes Created 8 years, 9 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 | « chrome/test/ui/ppapi_uitest.cc ('k') | content/browser/in_process_webkit/dom_storage_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_layout_test.cc
diff --git a/chrome/test/ui/ui_layout_test.cc b/chrome/test/ui/ui_layout_test.cc
index 5d43171e0d04f3221a59a9782488c11d60a6a842..aa0642afe2eccb2e1c4705ac564536c6c35b50b7 100644
--- a/chrome/test/ui/ui_layout_test.cc
+++ b/chrome/test/ui/ui_layout_test.cc
@@ -12,7 +12,7 @@
#include "base/test/test_file_util.h"
#include "base/test/test_timeouts.h"
#include "base/utf_string_conversions.h"
-#include "chrome/common/chrome_paths.h"
+#include "content/public/common/content_paths.h"
#include "chrome/test/automation/tab_proxy.h"
#include "net/base/escape.h"
#include "net/base/net_util.h"
@@ -50,10 +50,11 @@ void UILayoutTest::InitializeForLayoutTest(const FilePath& test_parent_dir,
const FilePath& test_case_dir,
int port) {
FilePath src_dir;
- ASSERT_TRUE(PathService::Get(chrome::DIR_LAYOUT_TESTS, &src_dir));
+ ASSERT_TRUE(PathService::Get(content::DIR_LAYOUT_TESTS, &src_dir));
layout_test_dir_ = src_dir.Append(test_parent_dir);
layout_test_dir_ = layout_test_dir_.Append(test_case_dir);
- ASSERT_TRUE(file_util::DirectoryExists(layout_test_dir_));
+ ASSERT_TRUE(file_util::DirectoryExists(layout_test_dir_))
+ << " " << layout_test_dir_.value();
// Gets the file path to rebased expected result directory for the current
// platform.
@@ -123,7 +124,7 @@ void UILayoutTest::InitializeForLayoutTest(const FilePath& test_parent_dir,
// Reads the layout test controller simulation script.
FilePath path;
- PathService::Get(chrome::DIR_TEST_DATA, &path);
+ PathService::Get(content::DIR_TEST_DATA, &path);
path = path.AppendASCII("layout_tests");
path = path.AppendASCII("layout_test_controller.html");
layout_test_controller_.clear();
@@ -133,11 +134,11 @@ void UILayoutTest::InitializeForLayoutTest(const FilePath& test_parent_dir,
void UILayoutTest::AddResourceForLayoutTest(const FilePath& parent_dir,
const FilePath& resource_name) {
FilePath source;
- ASSERT_TRUE(PathService::Get(chrome::DIR_LAYOUT_TESTS, &source));
+ ASSERT_TRUE(PathService::Get(content::DIR_LAYOUT_TESTS, &source));
source = source.Append(parent_dir);
source = source.Append(resource_name);
- ASSERT_TRUE(file_util::PathExists(source));
+ ASSERT_TRUE(file_util::PathExists(source)) << " " << source.value();
FilePath dest_parent_dir = temp_test_dir_.
AppendASCII("LayoutTests").Append(parent_dir);
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | content/browser/in_process_webkit/dom_storage_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698