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 <stdint.h> |
| 6 |
5 #include <utility> | 7 #include <utility> |
6 | 8 |
7 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
11 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | 14 #include "base/path_service.h" |
13 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
14 #include "mojo/application/public/cpp/application_connection.h" | 16 #include "mojo/application/public/cpp/application_connection.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 params->SetTargetURL(GURL("test:test")); | 316 params->SetTargetURL(GURL("test:test")); |
315 params->set_connect_callback( | 317 params->set_connect_callback( |
316 [&content_handler_id](uint32_t t) { content_handler_id = t; }); | 318 [&content_handler_id](uint32_t t) { content_handler_id = t; }); |
317 application_manager_->ConnectToApplication(std::move(params)); | 319 application_manager_->ConnectToApplication(std::move(params)); |
318 EXPECT_EQ(0u, content_handler_id); | 320 EXPECT_EQ(0u, content_handler_id); |
319 } | 321 } |
320 | 322 |
321 } // namespace test | 323 } // namespace test |
322 } // namespace package_manager | 324 } // namespace package_manager |
323 } // namespace mojo | 325 } // namespace mojo |
OLD | NEW |