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/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);
 }