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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include "mojo/application/public/cpp/application_impl.h" | 8 #include "mojo/application/public/cpp/application_impl.h" |
6 #include "mojo/application/public/cpp/application_test_base.h" | 9 #include "mojo/application/public/cpp/application_test_base.h" |
7 #include "mojo/public/cpp/system/macros.h" | 10 #include "mojo/public/cpp/system/macros.h" |
8 #include "mojo/public/interfaces/bindings/tests/versioning_test_client.mojom.h" | 11 #include "mojo/public/interfaces/bindings/tests/versioning_test_client.mojom.h" |
9 | 12 |
10 namespace mojo { | 13 namespace mojo { |
11 namespace test { | 14 namespace test { |
12 namespace versioning { | 15 namespace versioning { |
13 | 16 |
14 class VersioningApplicationTest : public ApplicationTestBase { | 17 class VersioningApplicationTest : public ApplicationTestBase { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Calling a version 2 method (which the service side doesn't support) closes | 115 // Calling a version 2 method (which the service side doesn't support) closes |
113 // the pipe. | 116 // the pipe. |
114 database_->ListEmployeeIds([](Array<uint64_t> ids) { EXPECT_TRUE(false); }); | 117 database_->ListEmployeeIds([](Array<uint64_t> ids) { EXPECT_TRUE(false); }); |
115 database_.WaitForIncomingResponse(); | 118 database_.WaitForIncomingResponse(); |
116 EXPECT_TRUE(database_.encountered_error()); | 119 EXPECT_TRUE(database_.encountered_error()); |
117 } | 120 } |
118 | 121 |
119 } // namespace versioning | 122 } // namespace versioning |
120 } // namespace examples | 123 } // namespace examples |
121 } // namespace mojo | 124 } // namespace mojo |
OLD | NEW |