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/macros.h" | 5 #include "base/macros.h" |
6 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" | 6 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" |
7 #include "mojo/application/public/cpp/application_impl.h" | 7 #include "mojo/shell/public/cpp/application_impl.h" |
8 #include "mojo/application/public/cpp/application_test_base.h" | 8 #include "mojo/shell/public/cpp/application_test_base.h" |
9 | 9 |
10 namespace mandoline { | 10 namespace mandoline { |
11 | 11 |
12 class BrowserTest : public mojo::test::ApplicationTestBase { | 12 class BrowserTest : public mojo::test::ApplicationTestBase { |
13 public: | 13 public: |
14 BrowserTest() : ApplicationTestBase() {} | 14 BrowserTest() : ApplicationTestBase() {} |
15 ~BrowserTest() override {} | 15 ~BrowserTest() override {} |
16 | 16 |
17 // mojo::test::ApplicationTestBase: | 17 // mojo::test::ApplicationTestBase: |
18 void SetUp() override { | 18 void SetUp() override { |
(...skipping 10 matching lines...) Expand all Loading... |
29 }; | 29 }; |
30 | 30 |
31 // A simple sanity check for connecting to the LaunchHandler. | 31 // A simple sanity check for connecting to the LaunchHandler. |
32 TEST_F(BrowserTest, LaunchHandlerBasic) { | 32 TEST_F(BrowserTest, LaunchHandlerBasic) { |
33 ASSERT_TRUE(launch_handler_.is_bound()); | 33 ASSERT_TRUE(launch_handler_.is_bound()); |
34 launch_handler_->LaunchURL(mojo::String::From("data:text/html,foo")); | 34 launch_handler_->LaunchURL(mojo::String::From("data:text/html,foo")); |
35 EXPECT_TRUE(launch_handler_.is_bound()); | 35 EXPECT_TRUE(launch_handler_.is_bound()); |
36 } | 36 } |
37 | 37 |
38 } // namespace mandoline | 38 } // namespace mandoline |
OLD | NEW |