OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/loader/fetch/MockResourceClient.h" | 5 #include "platform/loader/testing/MockResourceClient.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 MockResourceClient::MockResourceClient(Resource* resource) | 9 MockResourceClient::MockResourceClient(Resource* resource) |
10 : m_resource(resource), | 10 : m_resource(resource), |
11 m_notifyFinishedCalled(false), | 11 m_notifyFinishedCalled(false), |
12 m_encodedSizeOnNotifyFinished(0) { | 12 m_encodedSizeOnNotifyFinished(0) { |
13 m_resource->addClient(this); | 13 m_resource->addClient(this); |
14 } | 14 } |
15 | 15 |
(...skipping 16 matching lines...) Expand all Loading... |
32 m_resource = nullptr; | 32 m_resource = nullptr; |
33 } | 33 } |
34 } | 34 } |
35 | 35 |
36 DEFINE_TRACE(MockResourceClient) { | 36 DEFINE_TRACE(MockResourceClient) { |
37 visitor->trace(m_resource); | 37 visitor->trace(m_resource); |
38 ResourceClient::trace(visitor); | 38 ResourceClient::trace(visitor); |
39 } | 39 } |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
OLD | NEW |