OLD | NEW |
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 #include "components/device_event_log/device_event_log_impl.h" | 5 #include "components/device_event_log/device_event_log_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
| 15 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
16 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
17 #include "base/test/test_simple_task_runner.h" | 19 #include "base/test/test_simple_task_runner.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
19 | 21 |
20 namespace device_event_log { | 22 namespace device_event_log { |
21 | 23 |
22 namespace { | 24 namespace { |
23 | 25 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 "Power: event2\n" | 289 "Power: event2\n" |
288 "Network: event3\n" | 290 "Network: event3\n" |
289 "Power: event4\n" | 291 "Power: event4\n" |
290 "Network: event5\n" | 292 "Network: event5\n" |
291 "Network: event6\n"); | 293 "Network: event6\n"); |
292 EXPECT_EQ(all_events, GetLogStringForType("network,power")); | 294 EXPECT_EQ(all_events, GetLogStringForType("network,power")); |
293 EXPECT_EQ(all_events, GetLogStringForType("")); | 295 EXPECT_EQ(all_events, GetLogStringForType("")); |
294 } | 296 } |
295 | 297 |
296 } // namespace device_event_log | 298 } // namespace device_event_log |
OLD | NEW |