Fixed typos, candiate -> candidate

Bug: None
Change-Id: I2dee549aa79f1eb6bddd58cfc6c9f67eb6ba3663
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256147
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36273}
diff --git a/AUTHORS b/AUTHORS
index 212c990..6c6a0cd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -35,6 +35,7 @@
 Danail Kirov <dkirovbroadsoft@gmail.com>
 Dave Cowart <davecowart@gmail.com>
 David Porter <david@porter.me>
+David Sanders <dsanders11@ucsbalum.com>
 Dax Booysen <dax@younow.com>
 Dennis Angelo <dennis.angelo@gmail.com>
 Dharmesh Chauhan <dharmesh.r.chauhan@gmail.com>
diff --git a/examples/unityplugin/README b/examples/unityplugin/README
index 5f26b89..da8f07a 100644
--- a/examples/unityplugin/README
+++ b/examples/unityplugin/README
@@ -124,13 +124,13 @@
         LocalSdpReadytoSendInternalDelegate callback);
 
     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-    private delegate void IceCandiateReadytoSendInternalDelegate(
+    private delegate void IceCandidateReadytoSendInternalDelegate(
         string candidate, int sdpMlineIndex, string sdpMid);
-    public delegate void IceCandiateReadytoSendDelegate(
+    public delegate void IceCandidateReadytoSendDelegate(
         int id, string candidate, int sdpMlineIndex, string sdpMid);
     [DllImport(dllPath, CallingConvention = CallingConvention.Cdecl)]
-    private static extern bool RegisterOnIceCandiateReadytoSend(
-        int peerConnectionId, IceCandiateReadytoSendInternalDelegate callback);
+    private static extern bool RegisterOnIceCandidateReadytoSend(
+        int peerConnectionId, IceCandidateReadytoSendInternalDelegate callback);
 
     [DllImport(dllPath, CallingConvention = CallingConvention.Cdecl)]
     private static extern bool SetRemoteDescription(int peerConnectionId, string type, string sdp);
@@ -215,10 +215,10 @@
         RaiseLocalSdpReadytoSend);
       RegisterOnLocalSdpReadytoSend(mPeerConnectionId, localSdpReadytoSendDelegate);
 
-      iceCandiateReadytoSendDelegate =
-          new IceCandiateReadytoSendInternalDelegate(RaiseIceCandiateReadytoSend);
-      RegisterOnIceCandiateReadytoSend(
-          mPeerConnectionId, iceCandiateReadytoSendDelegate);
+      iceCandidateReadytoSendDelegate =
+          new IceCandidateReadytoSendInternalDelegate(RaiseIceCandidateReadytoSend);
+      RegisterOnIceCandidateReadytoSend(
+          mPeerConnectionId, iceCandidateReadytoSendDelegate);
     }
 
     private void RaiseLocalDataChannelReady() {
@@ -267,9 +267,9 @@
         OnLocalSdpReadytoSend(mPeerConnectionId, type, sdp);
     }
 
-    private void RaiseIceCandiateReadytoSend(string candidate, int sdpMlineIndex, string sdpMid) {
-      if (OnIceCandiateReadytoSend != null)
-        OnIceCandiateReadytoSend(mPeerConnectionId, candidate, sdpMlineIndex, sdpMid);
+    private void RaiseIceCandidateReadytoSend(string candidate, int sdpMlineIndex, string sdpMid) {
+      if (OnIceCandidateReadytoSend != null)
+        OnIceCandidateReadytoSend(mPeerConnectionId, candidate, sdpMlineIndex, sdpMid);
     }
 
     public void AddQueuedIceCandidate(List<IceCandidate> iceCandidateQueue) {
@@ -301,8 +301,8 @@
     private LocalSdpReadytoSendInternalDelegate localSdpReadytoSendDelegate = null;
     public event LocalSdpReadytoSendDelegate OnLocalSdpReadytoSend;
 
-    private IceCandiateReadytoSendInternalDelegate iceCandiateReadytoSendDelegate = null;
-    public event IceCandiateReadytoSendDelegate OnIceCandiateReadytoSend;
+    private IceCandidateReadytoSendInternalDelegate iceCandidateReadytoSendDelegate = null;
+    public event IceCandidateReadytoSendDelegate OnIceCandidateReadytoSend;
 
     private int mPeerConnectionId = -1;
   }
diff --git a/examples/unityplugin/simple_peer_connection.cc b/examples/unityplugin/simple_peer_connection.cc
index 16c580e..90bbef7 100644
--- a/examples/unityplugin/simple_peer_connection.cc
+++ b/examples/unityplugin/simple_peer_connection.cc
@@ -286,9 +286,9 @@
     return;
   }
 
-  if (OnIceCandiateReady)
-    OnIceCandiateReady(sdp.c_str(), candidate->sdp_mline_index(),
-                       candidate->sdp_mid().c_str());
+  if (OnIceCandidateReady)
+    OnIceCandidateReady(sdp.c_str(), candidate->sdp_mline_index(),
+                        candidate->sdp_mid().c_str());
 }
 
 void SimplePeerConnection::RegisterOnLocalI420FrameReady(
@@ -327,9 +327,9 @@
   OnLocalSdpReady = callback;
 }
 
-void SimplePeerConnection::RegisterOnIceCandiateReadytoSend(
+void SimplePeerConnection::RegisterOnIceCandidateReadytoSend(
     ICECANDIDATEREADYTOSEND_CALLBACK callback) {
-  OnIceCandiateReady = callback;
+  OnIceCandidateReady = callback;
 }
 
 bool SimplePeerConnection::SetRemoteDescription(const char* type,
diff --git a/examples/unityplugin/simple_peer_connection.h b/examples/unityplugin/simple_peer_connection.h
index d5cebc9..5d681dc 100644
--- a/examples/unityplugin/simple_peer_connection.h
+++ b/examples/unityplugin/simple_peer_connection.h
@@ -52,7 +52,7 @@
   void RegisterOnFailure(FAILURE_CALLBACK callback);
   void RegisterOnAudioBusReady(AUDIOBUSREADY_CALLBACK callback);
   void RegisterOnLocalSdpReadytoSend(LOCALSDPREADYTOSEND_CALLBACK callback);
-  void RegisterOnIceCandiateReadytoSend(
+  void RegisterOnIceCandidateReadytoSend(
       ICECANDIDATEREADYTOSEND_CALLBACK callback);
   bool SetRemoteDescription(const char* type, const char* sdp);
   bool AddIceCandidate(const char* sdp,
@@ -121,7 +121,7 @@
   AUDIOBUSREADY_CALLBACK OnAudioReady = nullptr;
 
   LOCALSDPREADYTOSEND_CALLBACK OnLocalSdpReady = nullptr;
-  ICECANDIDATEREADYTOSEND_CALLBACK OnIceCandiateReady = nullptr;
+  ICECANDIDATEREADYTOSEND_CALLBACK OnIceCandidateReady = nullptr;
 
   bool is_mute_audio_ = false;
   bool is_record_audio_ = false;
diff --git a/examples/unityplugin/unity_plugin_apis.cc b/examples/unityplugin/unity_plugin_apis.cc
index 672330f..6e34d7e 100644
--- a/examples/unityplugin/unity_plugin_apis.cc
+++ b/examples/unityplugin/unity_plugin_apis.cc
@@ -184,13 +184,13 @@
   return true;
 }
 
-bool RegisterOnIceCandiateReadytoSend(
+bool RegisterOnIceCandidateReadytoSend(
     int peer_connection_id,
     ICECANDIDATEREADYTOSEND_CALLBACK callback) {
   if (!g_peer_connection_map.count(peer_connection_id))
     return false;
 
-  g_peer_connection_map[peer_connection_id]->RegisterOnIceCandiateReadytoSend(
+  g_peer_connection_map[peer_connection_id]->RegisterOnIceCandidateReadytoSend(
       callback);
   return true;
 }
diff --git a/examples/unityplugin/unity_plugin_apis.h b/examples/unityplugin/unity_plugin_apis.h
index 8b8fe0f..9790dc5 100644
--- a/examples/unityplugin/unity_plugin_apis.h
+++ b/examples/unityplugin/unity_plugin_apis.h
@@ -100,7 +100,7 @@
 WEBRTC_PLUGIN_API bool RegisterOnLocalSdpReadytoSend(
     int peer_connection_id,
     LOCALSDPREADYTOSEND_CALLBACK callback);
-WEBRTC_PLUGIN_API bool RegisterOnIceCandiateReadytoSend(
+WEBRTC_PLUGIN_API bool RegisterOnIceCandidateReadytoSend(
     int peer_connection_id,
     ICECANDIDATEREADYTOSEND_CALLBACK callback);
 }
diff --git a/p2p/base/p2p_transport_channel_unittest.cc b/p2p/base/p2p_transport_channel_unittest.cc
index 2685d59..c69530b 100644
--- a/p2p/base/p2p_transport_channel_unittest.cc
+++ b/p2p/base/p2p_transport_channel_unittest.cc
@@ -6307,11 +6307,11 @@
   clock.AdvanceTime(webrtc::TimeDelta::Millis(10 * delay));
 
   if (stop_gather_on_strongly_connected) {
-    // The relay candiates gathered has not been propagated to channel.
+    // The relay candidates gathered has not been propagated to channel.
     EXPECT_EQ(ep1->saved_candidates_.size(), 0u);
     EXPECT_EQ(ep2->saved_candidates_.size(), 0u);
   } else {
-    // The relay candiates gathered has been propagated to channel.
+    // The relay candidates gathered has been propagated to channel.
     EXPECT_EQ(ep1->saved_candidates_.size(), 1u);
     EXPECT_EQ(ep2->saved_candidates_.size(), 1u);
   }
@@ -6369,11 +6369,11 @@
   clock.AdvanceTime(webrtc::TimeDelta::Millis(10 * delay));
 
   if (stop_gather_on_strongly_connected) {
-    // The relay candiates gathered has not been propagated to channel.
+    // The relay candidates gathered has not been propagated to channel.
     EXPECT_EQ(ep1->saved_candidates_.size(), 0u);
     EXPECT_EQ(ep2->saved_candidates_.size(), 0u);
   } else {
-    // The relay candiates gathered has been propagated.
+    // The relay candidates gathered has been propagated.
     EXPECT_EQ(ep1->saved_candidates_.size(), 2u);
     EXPECT_EQ(ep2->saved_candidates_.size(), 1u);
   }
diff --git a/p2p/base/port_unittest.cc b/p2p/base/port_unittest.cc
index 23b11a7..1197c44 100644
--- a/p2p/base/port_unittest.cc
+++ b/p2p/base/port_unittest.cc
@@ -2626,7 +2626,7 @@
 }
 
 // This test verifies the related addresses of different types of
-// ICE candiates.
+// ICE candidates.
 TEST_F(PortTest, TestCandidateRelatedAddress) {
   auto nat_server = CreateNatServer(kNatAddr1, NAT_OPEN_CONE);
   auto udpport = CreateUdpPort(kLocalAddr1);
diff --git a/p2p/base/turn_port.cc b/p2p/base/turn_port.cc
index 9b09ae8..45fe212 100644
--- a/p2p/base/turn_port.cc
+++ b/p2p/base/turn_port.cc
@@ -560,7 +560,7 @@
     return nullptr;
   }
 
-  // A TURN port will have two candiates, STUN and TURN. STUN may not
+  // A TURN port will have two candidates, STUN and TURN. STUN may not
   // present in all cases. If present stun candidate will be added first
   // and TURN candidate later.
   for (size_t index = 0; index < Candidates().size(); ++index) {
diff --git a/pc/webrtc_sdp_unittest.cc b/pc/webrtc_sdp_unittest.cc
index ea1b07d..a081d74 100644
--- a/pc/webrtc_sdp_unittest.cc
+++ b/pc/webrtc_sdp_unittest.cc
@@ -2783,7 +2783,7 @@
 }
 
 // This test verifies the deserialization of candidate-attribute
-// as per RFC 5245. Candiate-attribute will be of the format
+// as per RFC 5245. Candidate-attribute will be of the format
 // candidate:<blah>. This format will be used when candidates
 // are trickled.
 TEST_F(WebRtcSdpTest, DeserializeRawCandidateAttribute) {