| OLD | NEW |
| 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 COMPONENTS_SAFE_BROWSING_RENDERER_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ |
| 8 #define CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ | 8 #define COMPONENTS_SAFE_BROWSING_RENDERER_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" | 11 #include "components/safe_browsing/renderer/feature_extractor_clock.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 | 13 |
| 14 namespace safe_browsing { | 14 namespace safe_browsing { |
| 15 | 15 |
| 16 class MockFeatureExtractorClock : public FeatureExtractorClock { | 16 class MockFeatureExtractorClock : public FeatureExtractorClock { |
| 17 public: | 17 public: |
| 18 MockFeatureExtractorClock(); | 18 MockFeatureExtractorClock(); |
| 19 virtual ~MockFeatureExtractorClock(); | 19 virtual ~MockFeatureExtractorClock(); |
| 20 | 20 |
| 21 MOCK_METHOD0(Now, base::TimeTicks()); | 21 MOCK_METHOD0(Now, base::TimeTicks()); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(MockFeatureExtractorClock); | 24 DISALLOW_COPY_AND_ASSIGN(MockFeatureExtractorClock); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace safe_browsing | 27 } // namespace safe_browsing |
| 28 | 28 |
| 29 #endif // CHROME_RENDERER_SAFE_BROWSING_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ | 29 #endif // COMPONENTS_SAFE_BROWSING_RENDERER_MOCK_FEATURE_EXTRACTOR_CLOCK_H_ |
| OLD | NEW |