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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py

Issue 2554503004: Add running unit tests to run-bindings-tests. (Closed)
Patch Set: Landing in 4... 3... Created 4 years 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 | « third_party/WebKit/Tools/Scripts/webkitpy/bindings/bindings_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py
index 5393a0e3a817205d11bc4bba37a11dc01fd624a4..18fce80002bee0f53568c08a196505f4454530da 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/webkit_finder.py
@@ -30,6 +30,47 @@ import os
import sys
+def add_typ_dir_to_sys_path():
+ path_to_typ = get_typ_dir()
+ if path_to_typ not in sys.path:
+ sys.path.append(path_to_typ)
+
+
+def add_bindings_scripts_dir_to_sys_path():
+ path_to_bindings_scripts = get_bindings_scripts_dir()
+ if path_to_bindings_scripts not in sys.path:
+ sys.path.append(path_to_bindings_scripts)
+
+
+def get_bindings_scripts_dir():
+ return os.path.join(get_source_dir(), 'bindings', 'scripts')
+
+
+def get_blink_dir():
+ return os.path.dirname(os.path.dirname(get_scripts_dir()))
+
+
+def get_chromium_src_dir():
+ return os.path.dirname(os.path.dirname(get_blink_dir()))
+
+
+def get_scripts_dir():
+ return os.path.dirname(
+ os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
+
+
+def get_source_dir():
+ return os.path.join(get_blink_dir(), 'Source')
+
+
+def get_typ_dir():
+ return os.path.join(get_chromium_src_dir(), 'third_party', 'typ')
+
+
+def get_webkitpy_thirdparty_dir():
+ return os.path.join(get_scripts_dir(), 'webkitpy', 'thirdparty')
+
+
class WebKitFinder(object):
def __init__(self, filesystem):
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/bindings/bindings_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698