зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 8264a4d4762f (bug 1879444) for causing SM bustages on TestRefPtr.cpp CLOSED TREE
This commit is contained in:
Родитель
a3432833b0
Коммит
ffcbe31f46
|
@ -273,18 +273,6 @@ TEST(DOM_IndexedDB_SafeRefPtr, SafeRefPtrFromThis_DiscardInCtor)
|
|||
ASSERT_EQ(1, SafeBase::sNumDestroyed);
|
||||
}
|
||||
|
||||
TEST(DOM_IndexedDB_SafeRefPtr, Construct_FromSelf)
|
||||
{
|
||||
SafeBase::sNumDestroyed = 0;
|
||||
{
|
||||
SafeRefPtr<SafeBase> ptr = MakeSafeRefPtr<SafeBase>();
|
||||
ptr = std::move(ptr);
|
||||
ASSERT_EQ(1u, ptr->refCount());
|
||||
ASSERT_EQ(0, SafeBase::sNumDestroyed);
|
||||
}
|
||||
ASSERT_EQ(1, SafeBase::sNumDestroyed);
|
||||
}
|
||||
|
||||
static_assert(
|
||||
std::is_same_v<SafeRefPtr<Base>,
|
||||
decltype(std::declval<bool>() ? MakeSafeRefPtr<Derived>()
|
||||
|
|
|
@ -119,13 +119,6 @@ int main() {
|
|||
}
|
||||
MOZ_RELEASE_ASSERT(11 == Foo::sNumDestroyed);
|
||||
|
||||
{
|
||||
RefPtr<Foo> f = new Foo();
|
||||
f = std::move(f);
|
||||
MOZ_RELEASE_ASSERT(11 == Foo::sNumDestroyed);
|
||||
}
|
||||
MOZ_RELEASE_ASSERT(12 == Foo::sNumDestroyed);
|
||||
|
||||
{
|
||||
bool condition = true;
|
||||
const auto f =
|
||||
|
|
Загрузка…
Ссылка в новой задаче