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

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

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/test/test_timeouts.h" 14 #include "base/test/test_timeouts.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "components/mus/public/cpp/tests/window_server_test_base.h" 16 #include "components/mus/public/cpp/tests/window_server_test_base.h"
17 #include "components/mus/public/cpp/window.h" 17 #include "components/mus/public/cpp/window.h"
18 #include "components/mus/public/cpp/window_tree_connection.h" 18 #include "components/mus/public/cpp/window_tree_connection.h"
19 #include "components/web_view/public/interfaces/frame.mojom.h" 19 #include "components/web_view/public/interfaces/frame.mojom.h"
20 #include "mojo/application/public/cpp/application_impl.h"
21 #include "mojo/application/public/cpp/application_test_base.h"
22 #include "mojo/converters/network/network_type_converters.h" 20 #include "mojo/converters/network/network_type_converters.h"
23 #include "mojo/services/accessibility/public/interfaces/accessibility.mojom.h" 21 #include "mojo/services/accessibility/public/interfaces/accessibility.mojom.h"
22 #include "mojo/shell/public/cpp/application_impl.h"
23 #include "mojo/shell/public/cpp/application_test_base.h"
24 #include "net/test/embedded_test_server/embedded_test_server.h" 24 #include "net/test/embedded_test_server/embedded_test_server.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace mojo { 27 namespace mojo {
28 28
29 namespace { 29 namespace {
30 30
31 // Returns true if the tree contains a text node with contents matching |text|. 31 // Returns true if the tree contains a text node with contents matching |text|.
32 bool AxTreeContainsText(const Array<AxNodePtr>& tree, const String& text) { 32 bool AxTreeContainsText(const Array<AxNodePtr>& tree, const String& text) {
33 for (size_t i = 0; i < tree.size(); ++i) { 33 for (size_t i = 0; i < tree.size(); ++i) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 EXPECT_TRUE(QuitRunLoop()); 119 EXPECT_TRUE(QuitRunLoop());
120 }); 120 });
121 ASSERT_TRUE(DoRunLoopWithTimeout()); 121 ASSERT_TRUE(DoRunLoopWithTimeout());
122 122
123 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello ")); 123 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello "));
124 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!")); 124 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!"));
125 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo")); 125 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo"));
126 } 126 }
127 127
128 } // namespace mojo 128 } // namespace mojo
OLDNEW
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698