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 "mojo/runner/shell_test_base.h" | 5 #include "mojo/runner/shell_test_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 13 #include "mojo/public/cpp/system/core.h" |
12 #include "mojo/services/test_service/test_request_tracker.mojom.h" | 14 #include "mojo/services/test_service/test_request_tracker.mojom.h" |
13 #include "mojo/services/test_service/test_service.mojom.h" | 15 #include "mojo/services/test_service/test_service.mojom.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h" | |
16 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 using mojo::test::ServiceReport; | 19 using mojo::test::ServiceReport; |
20 using mojo::test::ServiceReportPtr; | 20 using mojo::test::ServiceReportPtr; |
21 using mojo::test::TestService; | 21 using mojo::test::TestService; |
22 using mojo::test::TestTimeService; | 22 using mojo::test::TestTimeService; |
23 using mojo::test::TestServicePtr; | 23 using mojo::test::TestServicePtr; |
24 using mojo::test::TestTimeServicePtr; | 24 using mojo::test::TestTimeServicePtr; |
25 using mojo::test::TestTrackedRequestService; | 25 using mojo::test::TestTrackedRequestService; |
26 using mojo::test::TestTrackedRequestServicePtr; | 26 using mojo::test::TestTrackedRequestServicePtr; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 EXPECT_EQ(TestTimeService::Name_, reports[1].service_name); | 285 EXPECT_EQ(TestTimeService::Name_, reports[1].service_name); |
286 EXPECT_EQ(1U, reports[1].total_requests); | 286 EXPECT_EQ(1U, reports[1].total_requests); |
287 EXPECT_EQ(TestTimeService::Name_, reports[2].service_name); | 287 EXPECT_EQ(TestTimeService::Name_, reports[2].service_name); |
288 EXPECT_EQ(20U, reports[2].total_requests); | 288 EXPECT_EQ(20U, reports[2].total_requests); |
289 } | 289 } |
290 | 290 |
291 } // namespace | 291 } // namespace |
292 } // namespace test | 292 } // namespace test |
293 } // namespace runner | 293 } // namespace runner |
294 } // namespace mojo | 294 } // namespace mojo |
OLD | NEW |