| Index: webrtc/pc/BUILD.gn | 
| diff --git a/webrtc/pc/BUILD.gn b/webrtc/pc/BUILD.gn | 
| index 5aa3ae4eac43085285a84a3edec8f8a471a1dce2..1ae2e44cc4a2062cfd4a30f5b25b76cfcf9b253b 100644 | 
| --- a/webrtc/pc/BUILD.gn | 
| +++ b/webrtc/pc/BUILD.gn | 
| @@ -103,8 +103,6 @@ rtc_static_library("libjingle_peerconnection") { | 
| "mediastreamobserver.cc", | 
| "mediastreamobserver.h", | 
| "mediastreamtrack.h", | 
| -    "ortcfactory.cc", | 
| -    "ortcfactory.h", | 
| "peerconnection.cc", | 
| "peerconnection.h", | 
| "peerconnectionfactory.cc", | 
| @@ -223,6 +221,39 @@ if (rtc_include_tests) { | 
| } | 
| } | 
|  | 
| +  rtc_source_set("pc_test_utils") { | 
| +    testonly = true | 
| +    sources = [ | 
| +      "test/fakeaudiocapturemodule.cc", | 
| +      "test/fakeaudiocapturemodule.h", | 
| +      "test/fakeaudiocapturemodule_unittest.cc", | 
| +      "test/fakedatachannelprovider.h", | 
| +      "test/fakeperiodicvideocapturer.h", | 
| +      "test/fakertccertificategenerator.h", | 
| +      "test/fakevideotrackrenderer.h", | 
| +      "test/fakevideotracksource.h", | 
| +      "test/mock_datachannel.h", | 
| +      "test/mock_peerconnection.h", | 
| +      "test/mock_webrtcsession.h", | 
| +      "test/mockpeerconnectionobservers.h", | 
| +      "test/peerconnectiontestwrapper.cc", | 
| +      "test/peerconnectiontestwrapper.h", | 
| +      "test/rtcstatsobtainer.h", | 
| +      "test/testsdpstrings.h", | 
| +    ] | 
| + | 
| +    deps = [ | 
| +      ":libjingle_peerconnection", | 
| +      "../base:rtc_base_tests_utils", | 
| +      "//testing/gmock", | 
| +    ] | 
| + | 
| +    if (!build_with_chromium && is_clang) { | 
| +      # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 
| +      suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 
| +    } | 
| +  } | 
| + | 
| config("peerconnection_unittests_config") { | 
| # The warnings below are enabled by default. Since GN orders compiler flags | 
| # for a target before flags from configs, the only way to disable such | 
| @@ -254,7 +285,6 @@ if (rtc_include_tests) { | 
| "localaudiosource_unittest.cc", | 
| "mediaconstraintsinterface_unittest.cc", | 
| "mediastream_unittest.cc", | 
| -      "ortcfactory_unittest.cc", | 
| "peerconnection_unittest.cc", | 
| "peerconnectionendtoend_unittest.cc", | 
| "peerconnectionfactory_unittest.cc", | 
| @@ -265,22 +295,6 @@ if (rtc_include_tests) { | 
| "rtpsenderreceiver_unittest.cc", | 
| "sctputils_unittest.cc", | 
| "statscollector_unittest.cc", | 
| -      "test/fakeaudiocapturemodule.cc", | 
| -      "test/fakeaudiocapturemodule.h", | 
| -      "test/fakeaudiocapturemodule_unittest.cc", | 
| -      "test/fakedatachannelprovider.h", | 
| -      "test/fakeperiodicvideocapturer.h", | 
| -      "test/fakertccertificategenerator.h", | 
| -      "test/fakevideotrackrenderer.h", | 
| -      "test/fakevideotracksource.h", | 
| -      "test/mock_datachannel.h", | 
| -      "test/mock_peerconnection.h", | 
| -      "test/mock_webrtcsession.h", | 
| -      "test/mockpeerconnectionobservers.h", | 
| -      "test/peerconnectiontestwrapper.cc", | 
| -      "test/peerconnectiontestwrapper.h", | 
| -      "test/rtcstatsobtainer.h", | 
| -      "test/testsdpstrings.h", | 
| "videocapturertracksource_unittest.cc", | 
| "videotrack_unittest.cc", | 
| "webrtcsdp_unittest.cc", | 
| @@ -333,6 +347,7 @@ if (rtc_include_tests) { | 
|  | 
| deps += [ | 
| ":libjingle_peerconnection", | 
| +      ":pc_test_utils", | 
| "..:webrtc_common", | 
| "../api:fakemetricsobserver", | 
| "../base:rtc_base_tests_utils", | 
|  |