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/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
| 9 #include "mojo/application/application_test_base_chromium.h" |
9 #include "mojo/public/cpp/application/application_impl.h" | 10 #include "mojo/public/cpp/application/application_impl.h" |
10 #include "mojo/public/cpp/application/application_test_base.h" | |
11 #include "net/test/spawned_test_server/spawned_test_server.h" | 11 #include "net/test/spawned_test_server/spawned_test_server.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/mojo_services/src/accessibility/public/interfaces/accessib
ility.mojom.h" | 13 #include "third_party/mojo_services/src/accessibility/public/interfaces/accessib
ility.mojom.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 base::RunLoop* current_run_loop = nullptr; | 19 base::RunLoop* current_run_loop = nullptr; |
20 | 20 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 QuitRunLoop(); | 79 QuitRunLoop(); |
80 }); | 80 }); |
81 ASSERT_TRUE(DoRunLoopWithTimeout()); | 81 ASSERT_TRUE(DoRunLoopWithTimeout()); |
82 | 82 |
83 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello ")); | 83 EXPECT_TRUE(AxTreeContainsText(ax_tree, "Hello ")); |
84 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!")); | 84 EXPECT_TRUE(AxTreeContainsText(ax_tree, "World!")); |
85 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo")); | 85 EXPECT_FALSE(AxTreeContainsText(ax_tree, "foo")); |
86 } | 86 } |
87 | 87 |
88 } // namespace mojo | 88 } // namespace mojo |
OLD | NEW |