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

Unified Diff: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc

Issue 1075783002: Enable components_browsertests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DistillerPageWebContentsTest and DomDistillerDistillablePageUtilsTest Created 5 years, 8 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/dom_distiller/content/distiller_page_web_contents_browsertest.cc
diff --git a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
index 2c84e6bb026e8e56282944332d875d70f18c1ca2..d81d70861bc73b982a560bfd9bb6a2c6f4780057 100644
--- a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
+++ b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
@@ -62,11 +62,20 @@ class DistillerPageWebContentsTest : public ContentBrowserTest {
private:
void AddComponentsResources() {
+#if defined(OS_ANDROID)
jbudorick 2015/04/10 13:34:32 ditto
Jaekyun Seok (inactive) 2015/04/13 01:36:02 Done.
+ base::FilePath pak_file;
+ bool r = PathService::Get(base::DIR_ANDROID_APP_DATA, &pak_file);
+ CHECK(r);
+ pak_file = pak_file.Append(FILE_PATH_LITERAL("paks"));
+ pak_file =
+ pak_file.Append(FILE_PATH_LITERAL("components_tests_resources.pak"));
+#else
base::FilePath pak_file;
base::FilePath pak_dir;
PathService::Get(base::DIR_MODULE, &pak_dir);
pak_file =
pak_dir.Append(FILE_PATH_LITERAL("components_tests_resources.pak"));
+#endif // OS_ANDROID
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
pak_file, ui::SCALE_FACTOR_NONE);
}

Powered by Google App Engine
This is Rietveld 408576698