Use run_as to hang the action for the runners so GYP doesn't have to know about gtest.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5573006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69548 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index c0be0917..1a91ac5 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -102,7 +102,21 @@
           'gtest/include',  # So that gtest headers can find themselves.
         ],
         'target_conditions': [
-          ['_type=="executable"', {'test': 1}],
+          ['_type=="executable"', {
+            'test': 1,
+            'conditions': [
+              ['OS=="mac"', {
+                'run_as': {
+                  'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'],
+                },
+              }],
+              ['OS=="win"', {
+                'run_as': {
+                  'action????': ['$(TargetPath)', '--gtest_print_time'],
+                },
+              }],
+            ],
+          }],
         ],
         'msvs_disabled_warnings': [4800],
       },