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

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

Issue 165168: Test startup of new tab page with a complex theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
===================================================================
--- chrome/test/ui/ui_test.cc (revision 22523)
+++ chrome/test/ui/ui_test.cc (working copy)
@@ -963,3 +963,22 @@
}
return false;
}
+
+// static
+FilePath UITest::ComputeTypicalUserDataSource(int profile_type) {
+ FilePath source_history_file;
+ EXPECT_TRUE(PathService::Get(chrome::DIR_TEST_DATA,
+ &source_history_file));
+ if (profile_type == UITest::DEFAULT_THEME) {
+ source_history_file = source_history_file.AppendASCII("profiles")
+ .AppendASCII("typical_history");
+ } else if (profile_type == UITest::COMPLEX_THEME) {
+ source_history_file = source_history_file.AppendASCII("profiles")
+ .AppendASCII("complex_theme");
+ } else {
+ NOTREACHED();
+ }
+ return source_history_file;
+}
+
+
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698