Skip to content

Commit 1c881a0

Browse files
Mobile Ads Developer Relationscopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 828635382
1 parent c867aeb commit 1c881a0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/plugin/Assets/GoogleMobileAds/Common/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
[assembly: InternalsVisibleTo("GoogleMobileAds.iOS")]
2323
[assembly: InternalsVisibleTo("GoogleMobileAds.Unity")]
2424
[assembly: InternalsVisibleTo("GoogleMobileAdsNative.Api")]
25+
[assembly: InternalsVisibleTo("UnitTests")]

source/plugin/Assets/GoogleMobileAds/Common/GlobalExceptionHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private set
4747
// changes to the service's response format.
4848
private const string ProdRcsUrl = "https://pagead2.googlesyndication.com/pagead/ping?e=1&f=1";
4949

50-
private static readonly Queue<ExceptionReport> _exceptionQueue =
50+
internal static readonly Queue<ExceptionReport> _exceptionQueue =
5151
new Queue<ExceptionReport>();
5252
private static readonly object _queueLock = new object();
5353
private float _timeOfNextBatch;
@@ -194,7 +194,7 @@ public void ReportTrappedException(Exception e, string name = null)
194194
/// This callback handles UNTRAPPED exceptions from *any* thread.
195195
/// It must be thread-safe and very fast.
196196
/// </summary>
197-
private void OnLogMessageReceivedThreaded(string logString, string stackTrace, LogType type)
197+
internal void OnLogMessageReceivedThreaded(string logString, string stackTrace, LogType type)
198198
{
199199
if (type != LogType.Exception) return;
200200

@@ -245,7 +245,7 @@ private string Sha256Hash(string rawData)
245245
/// <summary>
246246
/// Drains the queue and passes the resulting batch to be sent.
247247
/// </summary>
248-
private void ProcessAndSendBatch()
248+
internal void ProcessAndSendBatch()
249249
{
250250
Debug.Log("Processing and sending a batch of exceptions...");
251251

@@ -297,7 +297,7 @@ private void ResetBatchTimer()
297297
/// <summary>
298298
/// Builds the final JSON payload (conforming to JSPB rules) and sends it to RCS.
299299
/// </summary>
300-
private void SendToRcs(List<ExceptionReport> batch)
300+
protected virtual void SendToRcs(List<ExceptionReport> batch)
301301
{
302302
Debug.Log(string.Format("Sending a batch of {0} exception(s)...", batch.Count));
303303

0 commit comments

Comments
 (0)