199589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org#include "DMExpectationsTask.h" 299589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org#include "DMUtil.h" 399589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org 499589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.orgnamespace DM { 599589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org 699589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.orgExpectationsTask::ExpectationsTask(const Task& parent, 799589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org const Expectations& expectations, 899589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org SkBitmap bitmap) 9ef57b7e65330d5f794a513630517907500f1c1d0commit-bot@chromium.org : CpuTask(parent) 1099589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org , fName(parent.name()) // Masquerade as parent so failures are attributed to it. 1199589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org , fExpectations(expectations) 1299589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org , fBitmap(bitmap) 1399589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org {} 1499589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org 1599589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.orgvoid ExpectationsTask::draw() { 1699589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org if (!fExpectations.check(*this, fBitmap)) { 1799589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org this->fail(); 1899589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org } 1999589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org} 2099589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org 2199589af4e333422639d7e873207dd323fdd6e808commit-bot@chromium.org} // namespace DM 22