Reland "Enable GN check for webrtc/examples"

This is a reland of https://codereview.webrtc.org/2714343002
with the errors related to inclusions of test targets in webrtc/api
resolved.

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2733673002
Cr-Commit-Position: refs/heads/master@{#17053}
diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn
index 3447e92..e42b834 100644
--- a/webrtc/api/BUILD.gn
+++ b/webrtc/api/BUILD.gn
@@ -172,6 +172,21 @@
   }
 }
 
+rtc_source_set("libjingle_peerconnection_test_api") {
+  testonly = true
+  sources = [
+    "test/fakeconstraints.h",
+  ]
+
+  public_deps = [
+    ":libjingle_peerconnection_api",
+  ]
+
+  deps = [
+    "../base:rtc_base_approved",
+  ]
+}
+
 if (rtc_include_tests) {
   rtc_source_set("mock_audio_mixer") {
     testonly = true
@@ -189,22 +204,6 @@
     ]
   }
 
-  rtc_source_set("libjingle_peerconnection_test_api") {
-    testonly = true
-    sources = [
-      "test/fakeconstraints.h",
-    ]
-
-    public_deps = [
-      ":libjingle_peerconnection_api",
-    ]
-
-    deps = [
-      "../base:rtc_base_approved",
-      "//webrtc/test:test_support",
-    ]
-  }
-
   rtc_source_set("fakemetricsobserver") {
     testonly = true
     sources = [