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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/test/test_timeouts.h" | 9 #include "base/test/test_timeouts.h" |
10 #include "components/mus/public/cpp/tests/view_manager_test_base.h" | 10 #include "components/mus/public/cpp/tests/view_manager_test_base.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 mojo::InterfaceRequest<web_view::mojom::Frame> frame_request, | 48 mojo::InterfaceRequest<web_view::mojom::Frame> frame_request, |
49 web_view::mojom::FrameClientPtr client, | 49 web_view::mojom::FrameClientPtr client, |
50 uint32_t frame_id, | 50 uint32_t frame_id, |
51 mojo::Map<mojo::String, mojo::Array<uint8_t>> client_properties) | 51 mojo::Map<mojo::String, mojo::Array<uint8_t>> client_properties) |
52 override {} | 52 override {} |
53 void RequestNavigate(web_view::mojom::NavigationTargetType target_type, | 53 void RequestNavigate(web_view::mojom::NavigationTargetType target_type, |
54 uint32_t target_frame_id, | 54 uint32_t target_frame_id, |
55 mojo::URLRequestPtr request) override {} | 55 mojo::URLRequestPtr request) override {} |
56 void DidNavigateLocally(const mojo::String& url) override {} | 56 void DidNavigateLocally(const mojo::String& url) override {} |
57 void DispatchLoadEventToParent() override {} | 57 void DispatchLoadEventToParent() override {} |
| 58 void ReportFindInPageMatchCount(int32_t request_id, |
| 59 int32_t count, |
| 60 bool final_update) override {} |
| 61 void ReportFindInPageSelection(int32_t request_id, |
| 62 int32_t active_match_ordinal) override {} |
58 | 63 |
59 private: | 64 private: |
60 DISALLOW_COPY_AND_ASSIGN(TestFrame); | 65 DISALLOW_COPY_AND_ASSIGN(TestFrame); |
61 }; | 66 }; |
62 | 67 |
63 } // namespace | 68 } // namespace |
64 | 69 |
65 using AXProviderTest = mus::ViewManagerTestBase; | 70 using AXProviderTest = mus::ViewManagerTestBase; |
66 | 71 |
67 TEST_F(AXProviderTest, HelloWorld) { | 72 TEST_F(AXProviderTest, HelloWorld) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 EXPECT_TRUE(QuitRunLoop()); | 115 EXPECT_TRUE(QuitRunLoop()); |
111 }); | 116 }); |
112 ASSERT_TRUE(DoRunLoopWithTimeout()); | 117 ASSERT_TRUE(DoRunLoopWithTimeout()); |
113 | 118 |
114 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello ")); | 119 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello ")); |
115 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!")); | 120 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!")); |
116 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo")); | 121 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo")); |
117 } | 122 } |
118 | 123 |
119 } // namespace mojo | 124 } // namespace mojo |
OLD | NEW |