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:
Botond Ballo 2017-05-08 17:13:17 -04:00
Родитель 984a536a5f
Коммит 1645a7ef86
3 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;