Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / server2 / integration_test.py
index cfc3f37..3724a9c 100755 (executable)
@@ -16,6 +16,7 @@ import sys
 import time
 import unittest
 
+from appengine_wrappers import SetTaskRunnerForTest
 from branch_utility import BranchUtility
 from chroot_file_system import ChrootFileSystem
 from extensions_paths import (
@@ -92,6 +93,13 @@ class IntegrationTest(unittest.TestCase):
     if _EXPLICIT_TEST_FILES is not None:
       return
 
+
+    def task_runner(url, commit=None):
+      arguments = { 'commit': commit } if commit else {}
+      Handler(Request.ForTest(url, arguments=arguments)).Get()
+
+    SetTaskRunnerForTest(task_runner)
+
     print('Running cron...')
     start_time = time.time()
     try: