| Index: third_party/WebKit/Source/core/fetch/MockResource.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/MockResource.h b/third_party/WebKit/Source/core/fetch/MockResource.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09e595d0ea1fa9ce6f77bfe2f505f46e69fcec7a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/fetch/MockResource.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 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.
|
| +
|
| +#ifndef MockResource_h
|
| +#define MockResource_h
|
| +
|
| +#include "core/fetch/Resource.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class FetchRequest;
|
| +class ResourceFetcher;
|
| +struct ResourceLoaderOptions;
|
| +
|
| +// Mocked Resource sub-class for testing. MockResource class can pretend a type
|
| +// of Resource sub-class in a simple way. You should not expect anything
|
| +// complicated to emulate actual sub-resources, but you may be able to use this
|
| +// class to verify classes that consume Resource sub-classes in a simple way.
|
| +class MockResource final : public Resource {
|
| + public:
|
| + static MockResource* fetch(FetchRequest&, ResourceFetcher*);
|
| + MockResource(const ResourceRequest&, const ResourceLoaderOptions&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|