OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/policy/logging_work_scheduler.h" | 5 #include "chrome/browser/policy/logging_work_scheduler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 EXPECT_EQ(120, events[8]); | 104 EXPECT_EQ(120, events[8]); |
105 | 105 |
106 EXPECT_EQ(0, EventLogger::CountEvents(events, 0, 0)); | 106 EXPECT_EQ(0, EventLogger::CountEvents(events, 0, 0)); |
107 EXPECT_EQ(2, EventLogger::CountEvents(events, 0, 1)); | 107 EXPECT_EQ(2, EventLogger::CountEvents(events, 0, 1)); |
108 EXPECT_EQ(4, EventLogger::CountEvents(events, 30, 51)); | 108 EXPECT_EQ(4, EventLogger::CountEvents(events, 30, 51)); |
109 EXPECT_EQ(7, EventLogger::CountEvents(events, 0, 120)); | 109 EXPECT_EQ(7, EventLogger::CountEvents(events, 0, 120)); |
110 EXPECT_EQ(7, EventLogger::CountEvents(events, 1, 120)); | 110 EXPECT_EQ(7, EventLogger::CountEvents(events, 1, 120)); |
111 } | 111 } |
112 | 112 |
113 } // namespace policy | 113 } // namespace policy |
| 114 |
OLD | NEW |