| // Copyright 2016 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "remoting/client/chromoting_client_runtime.h" |
| |
| #include "base/run_loop.h" |
| #include "build/build_config.h" |
| #include "remoting/base/auto_thread_task_runner.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| |
| namespace remoting { |
| |
| #if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_ANDROID) |
| |
| // A simple test that starts and stop the runtime. This tests the runtime |
| // operates properly and all threads and message loops are valid. |
| TEST(ChromotingClientRuntimeTest, StartAndStop) { |
| ChromotingClientRuntime* runtime = ChromotingClientRuntime::GetInstance(); |
| |
| ASSERT_TRUE(runtime); |
| EXPECT_TRUE(runtime->network_task_runner().get()); |
| EXPECT_TRUE(runtime->ui_task_runner().get()); |
| EXPECT_TRUE(runtime->display_task_runner().get()); |
| EXPECT_TRUE(runtime->url_requester().get()); |
| EXPECT_TRUE(runtime->log_writer()); |
| } |
| |
| #endif |
| |
| } // namespace remoting |