| 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 "components/web_view/public/cpp/web_view.h" | 5 #include "components/web_view/public/cpp/web_view.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "components/view_manager/public/cpp/scoped_view_ptr.h" | 13 #include "components/mus/public/cpp/scoped_view_ptr.h" |
| 14 #include "components/view_manager/public/cpp/tests/view_manager_test_base.h" | 14 #include "components/mus/public/cpp/tests/view_manager_test_base.h" |
| 15 #include "components/view_manager/public/cpp/view.h" | 15 #include "components/mus/public/cpp/view.h" |
| 16 #include "components/view_manager/public/cpp/view_tree_connection.h" | 16 #include "components/mus/public/cpp/view_tree_connection.h" |
| 17 #include "mojo/util/filename_util.h" | 17 #include "mojo/util/filename_util.h" |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 19 | 19 |
| 20 namespace web_view { | 20 namespace web_view { |
| 21 | 21 |
| 22 class WebViewTest : public mojo::ViewManagerTestBase, | 22 class WebViewTest : public mojo::ViewManagerTestBase, |
| 23 public mojom::WebViewClient { | 23 public mojom::WebViewClient { |
| 24 public: | 24 public: |
| 25 WebViewTest() : web_view_(this) {} | 25 WebViewTest() : web_view_(this) {} |
| 26 ~WebViewTest() override {} | 26 ~WebViewTest() override {} |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 web_view()->LoadRequest(request.Pass()); | 102 web_view()->LoadRequest(request.Pass()); |
| 103 | 103 |
| 104 // Build a nested run loop. | 104 // Build a nested run loop. |
| 105 StartNestedRunLoopUntilLoadingDone(); | 105 StartNestedRunLoopUntilLoadingDone(); |
| 106 | 106 |
| 107 // Our title should have been set on the final. | 107 // Our title should have been set on the final. |
| 108 EXPECT_EQ("Test Title Changed", last_title()); | 108 EXPECT_EQ("Test Title Changed", last_title()); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace web_view | 111 } // namespace web_view |
| OLD | NEW |