Index: third_party/WebKit/Source/core/fetch/MockImageResourceClient.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/MockImageResourceClient.cpp b/third_party/WebKit/Source/core/fetch/MockImageResourceClient.cpp |
deleted file mode 100644 |
index b3d9d156539d3ea2816a4465c3533e45c41f6b6a..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/core/fetch/MockImageResourceClient.cpp |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "core/fetch/MockImageResourceClient.h" |
- |
-#include "core/fetch/ImageResource.h" |
-#include "testing/gtest/include/gtest/gtest.h" |
- |
-namespace blink { |
- |
-MockImageResourceClient::MockImageResourceClient(PassRefPtrWillBeRawPtr<Resource> resource) |
- : m_resource(resource.get()) |
- , m_imageChangedCount(0) |
- , m_notifyFinishedCalled(false) |
-{ |
- m_resource->addClient(this); |
-} |
- |
-MockImageResourceClient::~MockImageResourceClient() |
-{ |
- if (m_resource) |
- m_resource->removeClient(this); |
-} |
- |
-void MockImageResourceClient::notifyFinished(Resource*) |
-{ |
- ASSERT_FALSE(m_notifyFinishedCalled); |
- m_notifyFinishedCalled = true; |
-} |
- |
-void MockImageResourceClient::removeAsClient() |
-{ |
- m_resource->removeClient(this); |
- m_resource = nullptr; |
-} |
- |
-} // namespace blink |