| 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "mojo/public/cpp/bindings/binding.h" |
| 9 #include "services/navigation/public/interfaces/view.mojom.h" | 10 #include "services/navigation/public/interfaces/view.mojom.h" |
| 10 #include "services/service_manager/public/cpp/service.h" | 11 #include "services/service_manager/public/cpp/service.h" |
| 11 #include "services/service_manager/public/cpp/service_test.h" | 12 #include "services/service_manager/public/cpp/service_test.h" |
| 12 | 13 |
| 13 namespace navigation { | 14 namespace navigation { |
| 14 | 15 |
| 15 class NavigationTest : public service_manager::test::ServiceTest, | 16 class NavigationTest : public service_manager::test::ServiceTest, |
| 16 public mojom::ViewClient { | 17 public mojom::ViewClient { |
| 17 public: | 18 public: |
| 18 NavigationTest() | 19 NavigationTest() |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 mojom::ViewPtr view; | 79 mojom::ViewPtr view; |
| 79 view_factory->CreateView(GetViewClient(), GetProxy(&view)); | 80 view_factory->CreateView(GetViewClient(), GetProxy(&view)); |
| 80 view->NavigateTo(GURL("about:blank")); | 81 view->NavigateTo(GURL("about:blank")); |
| 81 | 82 |
| 82 base::RunLoop loop; | 83 base::RunLoop loop; |
| 83 QuitOnLoadingStateChange(&loop); | 84 QuitOnLoadingStateChange(&loop); |
| 84 loop.Run(); | 85 loop.Run(); |
| 85 } | 86 } |
| 86 | 87 |
| 87 } // namespace navigation | 88 } // namespace navigation |
| OLD | NEW |