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 "tools/cygprofile/cygprofile.h" | 5 #include "tools/cygprofile/cygprofile.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 #include <sys/time.h> |
| 9 |
7 #include <vector> | 10 #include <vector> |
8 | 11 |
9 #include <sys/time.h> | |
10 | |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace cygprofile { | 18 namespace cygprofile { |
18 namespace { | 19 namespace { |
19 | 20 |
20 void FlushEntries(std::vector<LogEntry>* destination, | 21 void FlushEntries(std::vector<LogEntry>* destination, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 93 } |
93 | 94 |
94 } // namespace | 95 } // namespace |
95 } // namespace cygprofile | 96 } // namespace cygprofile |
96 | 97 |
97 // Custom runner implementation since base's one requires JNI on Android. | 98 // Custom runner implementation since base's one requires JNI on Android. |
98 int main(int argc, char** argv) { | 99 int main(int argc, char** argv) { |
99 testing::InitGoogleTest(&argc, argv); | 100 testing::InitGoogleTest(&argc, argv); |
100 return RUN_ALL_TESTS(); | 101 return RUN_ALL_TESTS(); |
101 } | 102 } |
OLD | NEW |