| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/test/trace_event_analyzer.h" | 11 #include "base/test/trace_event_analyzer.h" |
| 11 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 12 #include "base/trace_event/trace_buffer.h" | 13 #include "base/trace_event/trace_buffer.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 16 |
| 16 namespace trace_analyzer { | 17 namespace trace_analyzer { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 EXPECT_EQ(num_events, CountMatches(event_ptrs, Query::Bool(true))); | 890 EXPECT_EQ(num_events, CountMatches(event_ptrs, Query::Bool(true))); |
| 890 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, Query::Bool(true), | 891 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, Query::Bool(true), |
| 891 1, num_events)); | 892 1, num_events)); |
| 892 EXPECT_EQ(1u, CountMatches(event_ptrs, query_one)); | 893 EXPECT_EQ(1u, CountMatches(event_ptrs, query_one)); |
| 893 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, !query_one)); | 894 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, !query_one)); |
| 894 EXPECT_EQ(num_named, CountMatches(event_ptrs, query_named)); | 895 EXPECT_EQ(num_named, CountMatches(event_ptrs, query_named)); |
| 895 } | 896 } |
| 896 | 897 |
| 897 | 898 |
| 898 } // namespace trace_analyzer | 899 } // namespace trace_analyzer |
| OLD | NEW |