OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <string> | 5 #include <string> |
6 #include <utility> | 6 #include <utility> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
11 #include "mojo/public/c/environment/logger.h" | 11 #include "mojo/public/c/environment/logger.h" |
12 #include "mojo/public/cpp/application/application_impl.h" | |
13 #include "mojo/public/cpp/application/application_test_base.h" | 12 #include "mojo/public/cpp/application/application_test_base.h" |
14 #include "mojo/public/cpp/application/connection_context.h" | 13 #include "mojo/public/cpp/application/connection_context.h" |
15 #include "mojo/public/cpp/system/time.h" | 14 #include "mojo/public/cpp/system/time.h" |
16 #include "mojo/services/log/interfaces/entry.mojom.h" | 15 #include "mojo/services/log/interfaces/entry.mojom.h" |
17 #include "mojo/services/log/interfaces/log.mojom.h" | 16 #include "mojo/services/log/interfaces/log.mojom.h" |
18 #include "services/log/log_impl.h" | 17 #include "services/log/log_impl.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 namespace mojo { | 20 namespace mojo { |
22 namespace log { | 21 namespace log { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 "<mojo:log_impl_unittest> [INFO] file.ext:1: 1234567890", | 66 "<mojo:log_impl_unittest> [INFO] file.ext:1: 1234567890", |
68 "<mojo:log_impl_unittest> [INFO] 1234567890", | 67 "<mojo:log_impl_unittest> [INFO] 1234567890", |
69 "<mojo:log_impl_unittest> [INFO] <no message>", | 68 "<mojo:log_impl_unittest> [INFO] <no message>", |
70 }; | 69 }; |
71 EXPECT_EQ(kExpectedMessages, messages); | 70 EXPECT_EQ(kExpectedMessages, messages); |
72 } | 71 } |
73 | 72 |
74 } // namespace | 73 } // namespace |
75 } // namespace log | 74 } // namespace log |
76 } // namespace mojo | 75 } // namespace mojo |
OLD | NEW |