[epiphany] Enable safe browsing test



commit 91cf9d4d495498465356ff63942c800abca3ea99
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Fri Dec 21 16:06:35 2018 +0100

    Enable safe browsing test

 tests/ephy-gsb-service-test.c | 21 +++++++++------------
 tests/meson.build             | 18 +++++++++---------
 2 files changed, 18 insertions(+), 21 deletions(-)
---
diff --git a/tests/ephy-gsb-service-test.c b/tests/ephy-gsb-service-test.c
index d47f29eb9..41c05eda2 100644
--- a/tests/ephy-gsb-service-test.c
+++ b/tests/ephy-gsb-service-test.c
@@ -181,18 +181,15 @@ typedef struct {
 } VerifyURLTest;
 
 static const VerifyURLTest verify_url_tests[] = {
-//  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/MALWARE/URL/";,                    TRUE},
-//  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/SOCIAL_ENGINEERING/URL/";,         TRUE},
-//  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/UNWANTED_SOFTWARE/URL/";,          TRUE},
-//  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/";,             TRUE},
-//  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/";,  TRUE},
-//  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/UNWANTED_SOFTWARE/URL/";,   TRUE},
-#if 0
-  /* FIXME: https://groups.google.com/forum/#!topic/google-safe-browsing-api/S6pWV_cjwGU */
-  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/MALWARE/URL/";,                  FALSE},
-  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/SOCIAL_ENGINEERING/URL/";,       FALSE},
-  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/UNWANTED_SOFTWARE/URL/";,        FALSE},
-#endif
+  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/MALWARE/URL/";,                    TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/SOCIAL_ENGINEERING/URL/";,         TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/LINUX/UNWANTED_SOFTWARE/URL/";,          TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/";,             TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/";,  TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/UNWANTED_SOFTWARE/URL/";,   TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/MALWARE/URL/";,                  TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/SOCIAL_ENGINEERING/URL/";,       TRUE},
+  {"https://testsafebrowsing.appspot.com/apiv4/WINDOWS/UNWANTED_SOFTWARE/URL/";,        TRUE},
 };
 
 static GMainLoop *test_verify_url_loop;
diff --git a/tests/meson.build b/tests/meson.build
index 6e8cc3fd8..6f24acb3a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -65,15 +65,15 @@ if get_option('unit_tests')
   #      env: envs
   # )
 
-  #gsb_service_test = executable('test-ephy-gsb-service',
-  #  'ephy-gsb-service-test.c',
-  #  dependencies: ephymain_dep
-  #)
-  #test('GSB service test',
-  #     gsb_service_test,
-  #     env: envs,
-  #     timeout: 90 # slow!
-  #)
+  gsb_service_test = executable('test-ephy-gsb-service',
+    'ephy-gsb-service-test.c',
+    dependencies: ephymain_dep
+  )
+  test('GSB service test',
+       gsb_service_test,
+       env: envs,
+       timeout: 90 # slow!
+  )
 
   history_test = executable('test-ephy-history',
     'ephy-history-test.c',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]