forked from mirrors/gecko-dev
Bug 1847260 - use diagnostic assertions to validate nsITransportSecurityInfo refactoring r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D185581
This commit is contained in:
parent
183a888a39
commit
695c711b20
2 changed files with 4 additions and 4 deletions
|
|
@ -61,7 +61,7 @@ CommonSocketControl::CommonSocketControl(const nsCString& aHostName,
|
||||||
mResumed(false),
|
mResumed(false),
|
||||||
mIsBuiltCertChainRootBuiltInRoot(false),
|
mIsBuiltCertChainRootBuiltInRoot(false),
|
||||||
mPeerId() {
|
mPeerId() {
|
||||||
#ifdef DEBUG
|
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
|
||||||
mOwningThread = PR_GetCurrentThread();
|
mOwningThread = PR_GetCurrentThread();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@
|
||||||
#include "nsITLSSocketControl.h"
|
#include "nsITLSSocketControl.h"
|
||||||
#include "nsSocketTransportService2.h"
|
#include "nsSocketTransportService2.h"
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
|
||||||
# include "prthread.h"
|
# include "prthread.h"
|
||||||
# define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \
|
# define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \
|
||||||
MOZ_ASSERT(mOwningThread == PR_GetCurrentThread())
|
MOZ_DIAGNOSTIC_ASSERT(mOwningThread == PR_GetCurrentThread())
|
||||||
#else
|
#else
|
||||||
# define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \
|
# define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \
|
||||||
do { \
|
do { \
|
||||||
|
|
@ -183,7 +183,7 @@ class CommonSocketControl : public nsITLSSocketControl {
|
||||||
bool mIsBuiltCertChainRootBuiltInRoot;
|
bool mIsBuiltCertChainRootBuiltInRoot;
|
||||||
nsCString mPeerId;
|
nsCString mPeerId;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
|
||||||
const PRThread* mOwningThread;
|
const PRThread* mOwningThread;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue