Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: components/html_viewer/ax_provider_apptest.cc

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: General patch cleanup. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/document_resource_waiter.h » ('j') | components/html_viewer/html_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698