suite_scheduler: count the past jobs from frontdoor instead of swarming

BUG=1006426
TEST=runner.py --test_type integration

Change-Id: I35c2e937f1d814996cbc7fe18735ca4a453b42be
diff --git a/gae_test.py b/gae_test.py
index 1175b65..ade90d1 100644
--- a/gae_test.py
+++ b/gae_test.py
@@ -127,6 +127,19 @@
       self.response.write('\n')
 
 
+class _FakeCrOSTestPlatformBigqueryHandler(webapp2.RequestHandler):
+
+  def get(self):
+    bq_client = rest_client.CrOSTestPlatformBigqueryClient(
+        rest_client.BaseRestClient(
+            constants.RestClient.BIGQUERY_CLIENT.scopes,
+            constants.RestClient.BIGQUERY_CLIENT.service_name,
+            constants.RestClient.BIGQUERY_CLIENT.service_version))
+    res = bq_client.get_past_job_nums(72)
+    if res > 0:
+      self.response.write('ok')
+
+
 class _FakeBuildbucketLibCompatibilityHandler(webapp2.RequestHandler):
 
   def get(self):
@@ -148,6 +161,7 @@
      _FakeSkylabBackwardCompatibilityWithSanityHandler),
     ('/test_push/bq_get_passed', _FakeBigqueryGetPassedHandler),
     ('/test_push/bq_get_relaxed_passed', _FakeBigqueryGetRelaxedPassedHandler),
+    ('/test_push/bq_get_last_hours', _FakeCrOSTestPlatformBigqueryHandler),
     ('/test_push/buildbucket_lib_compatibility',
      _FakeBuildbucketLibCompatibilityHandler)
     ], debug=True)