Set random_test size to large

This test is regularly timing out on ci.bazel.io: http://ci.bazel.io/job/re2/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/36/console.
Increasing it size should make that test pass 100% of the time.

Change-Id: I30a7fa31e4d800533d957394940c53f980858695
Reviewed-on: https://code-review.googlesource.com/4010
Reviewed-by: Paul Wankadia <[email protected]>
diff --git a/BUILD b/BUILD
index 0e042f9..2fb0d22 100644
--- a/BUILD
+++ b/BUILD
@@ -117,6 +117,6 @@
 re2_test("exhaustive2_test")
 re2_test("exhaustive3_test")
 re2_test("exhaustive_test")
-re2_test("random_test")
+re2_test("random_test", size="large")
 
 # TODO: Add support for regexp_benchmark.
diff --git a/re2_test.bzl b/re2_test.bzl
index a52cd9f..8dafbd5 100644
--- a/re2_test.bzl
+++ b/re2_test.bzl
@@ -3,12 +3,13 @@
 # license that can be found in the LICENSE file.
 
 # Define a bazel macro that creates cc_test for re2.
-def re2_test(name, deps=[]):
+def re2_test(name, deps=[], size="medium"):
   native.cc_test(
       name=name,
       srcs=["re2/testing/%s.cc" % (name)],
       deps=[
           ":re2",
           ":test",
-      ] + deps
+      ] + deps,
+      size = size,
   )