Bug 1751995 - Add TestOnlyIsTransactionComplete to MessageChannel r=ipc-reviewers,nika
This method (intended to be used only in tests) returns whether the current transaction stack is complete, and is used by TestHangs to determine when to continue in the HangButReceive subtest. Differential Revision: https://phabricator.services.mozilla.com/D203964
This commit is contained in:
@@ -292,6 +292,11 @@ class MessageChannel : HasResultCodes {
|
||||
|
||||
void CancelCurrentTransaction() MOZ_EXCLUDES(*mMonitor);
|
||||
|
||||
// Return whether the current transaction is complete.
|
||||
//
|
||||
// This is intended only for tests.
|
||||
bool TestOnlyIsTransactionComplete() const MOZ_EXCLUDES(*mMonitor);
|
||||
|
||||
// IsClosed and NumQueuedMessages are safe to call from any thread, but
|
||||
// may provide an out-of-date value.
|
||||
bool IsClosed() MOZ_EXCLUDES(*mMonitor) {
|
||||
|
||||
Reference in New Issue
Block a user