Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: third_party/WebKit/Source/core/loader/MockThreadableLoader.h

Issue 1264453002: Split the constructor of ThreadableLoader into two methods (ctor and start()) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Uplaod MockThreadableLoader Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/loader/ThreadableLoader.h"
6 #include "testing/gmock/include/gmock/gmock.h"
7 #include "wtf/PassRefPtr.h"
8
9 namespace blink {
10
11 class MockThreadableLoader : public ThreadableLoader {
12 public:
13 static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testi ng::StrictMock<MockThreadableLoader>); }
14
15 MOCK_METHOD1(start, void(const ResourceRequest&));
16 MOCK_METHOD1(overrideTimeout, void(unsigned long));
17 MOCK_METHOD0(cancel, void());
18
19 protected:
20 MockThreadableLoader() = default;
21 };
22
23 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698