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

Side by Side Diff: base/timer/mock_elapsed_timer.h

Issue 338103003: Password bubble: Ensure that the bubble stays open for at least 1 second. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 6 years, 6 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
(Empty)
1 // Copyright 2014 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 #ifndef BASE_TIMER_MOCK_ELAPSED_TIMER_H_
6 #define BASE_TIMER_MOCK_ELAPSED_TIMER_H_
7
8 #include "base/base_export.h"
9 #include "base/time/time.h"
10 #include "base/timer/elapsed_timer.h"
11
12 namespace base {
13
14 class BASE_EXPORT MockElapsedTimer : public base::ElapsedTimer {
15 public:
16 MockElapsedTimer() {}
17 virtual TimeDelta Elapsed() const OVERRIDE;
18
19 void Advance(int64 ms) { delta_ = base::TimeDelta::FromMilliseconds(ms); }
20
21 private:
22 TimeDelta delta_;
23
24 DISALLOW_COPY_AND_ASSIGN(MockElapsedTimer);
25 };
26
27 } // namespace base
28
29 #endif // BASE_TIMER_MOCK_ELAPSED_TIMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698