Revert of Linux MSan: enable swarming/sharding for browser_tests. (patchset #1 id...
[chromium-blink-merge.git] / chrome / renderer / safe_browsing / feature_extractor_clock.h
blobf14fc246056ca9b21238ae739dd42933ab362ef0
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
3 // found in the LICENSE file.
4 //
5 // A simple abstraction for getting the current time during feature extraction.
6 // This can be mocked out for testing.
8 #ifndef CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_
9 #define CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_
11 #include "base/time/time.h"
13 namespace safe_browsing {
15 class FeatureExtractorClock {
16 public:
17 FeatureExtractorClock() {}
18 virtual ~FeatureExtractorClock();
20 // Returns the current time. May be mocked for testing.
21 virtual base::TimeTicks Now();
23 private:
24 DISALLOW_COPY_AND_ASSIGN(FeatureExtractorClock);
27 } // namespace safe_browsing
29 #endif // CHROME_RENDERER_SAFE_BROWSING_FEATURE_EXTRACTOR_CLOCK_H_