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

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: Removed pipes around non-variables in a comment 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef MockThreadableLoader_h 5 #ifndef MockThreadableLoader_h
6 #define MockThreadableLoader_h 6 #define MockThreadableLoader_h
7 7
8 #include "core/loader/ThreadableLoader.h" 8 #include "core/loader/ThreadableLoader.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class MockThreadableLoader : public ThreadableLoader { 14 class MockThreadableLoader : public ThreadableLoader {
15 public: 15 public:
16 static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testi ng::StrictMock<MockThreadableLoader>); } 16 static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testi ng::StrictMock<MockThreadableLoader>); }
17 17
18 MOCK_METHOD1(start, void(const ResourceRequest&));
18 MOCK_METHOD1(overrideTimeout, void(unsigned long)); 19 MOCK_METHOD1(overrideTimeout, void(unsigned long));
19 MOCK_METHOD0(cancel, void()); 20 MOCK_METHOD0(cancel, void());
20 21
21 protected: 22 protected:
22 MockThreadableLoader() = default; 23 MockThreadableLoader() = default;
23 }; 24 };
24 25
25 } // namespace blink 26 } // namespace blink
26 27
27 #endif // MockThreadableLoader_h 28 #endif // MockThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698