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

Side by Side Diff: chrome/renderer/safe_browsing/mock_feature_extractor_clock.h

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // A mock implementation of FeatureExtractorClock for testing. 5 // A mock implementation of FeatureExtractorClock for testing.
6 6
7 #ifndef CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ 7 #ifndef CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_
8 #define CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ 8 #define CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_
9 9
10 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" 10 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace safe_browsing { 13 namespace safe_browsing {
14 14
15 class MockFeatureExtractorClock : public FeatureExtractorClock { 15 class MockFeatureExtractorClock : public FeatureExtractorClock {
16 public: 16 public:
17 MockFeatureExtractorClock() : FeatureExtractorClock() {} 17 MockFeatureExtractorClock();
18 virtual ~MockFeatureExtractorClock() {} 18 virtual ~MockFeatureExtractorClock();
19 19
20 MOCK_METHOD0(Now, base::TimeTicks()); 20 MOCK_METHOD0(Now, base::TimeTicks());
21 21
22 private: 22 private:
23 DISALLOW_COPY_AND_ASSIGN(MockFeatureExtractorClock); 23 DISALLOW_COPY_AND_ASSIGN(MockFeatureExtractorClock);
24 }; 24 };
25 25
26 } // namespace safe_browsing 26 } // namespace safe_browsing
27 27
28 #endif // CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ 28 #endif // CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698