зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1362889 - Ensure the MockContentController in APZ GTests doesn't outlive the test fixture. r=kats
MozReview-Commit-ID: AuSC5w1FXWG --HG-- extra : rebase_source : 809bc22c63d6a3e16357eebf686b03442e189df5
This commit is contained in:
Родитель
984a536a5f
Коммит
1645a7ef86
|
@ -50,6 +50,7 @@ protected:
|
|||
while (mcc->RunThroughDelayedTasks());
|
||||
apzc->Destroy();
|
||||
tm->ClearTree();
|
||||
tm->ClearContentController();
|
||||
}
|
||||
|
||||
void MakeApzcWaitForMainThread()
|
||||
|
|
|
@ -30,6 +30,7 @@ protected:
|
|||
virtual void TearDown() {
|
||||
while (mcc->RunThroughDelayedTasks());
|
||||
manager->ClearTree();
|
||||
manager->ClearContentController();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -176,6 +176,10 @@ public:
|
|||
return mInputQueue;
|
||||
}
|
||||
|
||||
void ClearContentController() {
|
||||
mcc = nullptr;
|
||||
}
|
||||
|
||||
protected:
|
||||
AsyncPanZoomController* NewAPZCInstance(uint64_t aLayersId,
|
||||
GeckoContentController* aController) override;
|
||||
|
|
Загрузка…
Ссылка в новой задаче