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

Side by Side Diff: remoting/test/leaky_bucket.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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
« no previous file with comments | « remoting/test/host_list_fetcher_unittest.cc ('k') | remoting/test/mock_access_token_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 REMOTING_TEST_LEAKY_BUCKET_H_ 5 #ifndef REMOTING_TEST_LEAKY_BUCKET_H_
6 #define REMOTING_TEST_LEAKY_BUCKET_H_ 6 #define REMOTING_TEST_LEAKY_BUCKET_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class LeakyBucket { 13 class LeakyBucket {
14 public: 14 public:
15 // |depth| is in bytes. |rate| is specified in bytes/second. 15 // |depth| is in bytes. |rate| is specified in bytes/second.
16 LeakyBucket(double depth, double rate); 16 LeakyBucket(double depth, double rate);
17 ~LeakyBucket(); 17 ~LeakyBucket();
18 18
(...skipping 10 matching lines...) Expand all
29 29
30 double level_; 30 double level_;
31 base::TimeTicks last_update_; 31 base::TimeTicks last_update_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(LeakyBucket); 33 DISALLOW_COPY_AND_ASSIGN(LeakyBucket);
34 }; 34 };
35 35
36 } // namespace remoting 36 } // namespace remoting
37 37
38 #endif // REMOTING_TEST_LEAKY_BUCKET_H_ 38 #endif // REMOTING_TEST_LEAKY_BUCKET_H_
OLDNEW
« no previous file with comments | « remoting/test/host_list_fetcher_unittest.cc ('k') | remoting/test/mock_access_token_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698