blob: 14bccc2999ea8dde510d86506927153c2e3da43c [file] [log] [blame]
Jiakai Zhang9f4e1f02022-06-08 16:22:07 +01001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "artd.h"
18
19#include <memory>
20
21#include "android/binder_interface_utils.h"
22#include "base/common_art_test.h"
23#include "gtest/gtest.h"
24
25namespace art {
26namespace artd {
27namespace {
28
29class ArtdTest : public CommonArtTest {
30 protected:
31 void SetUp() override {
32 CommonArtTest::SetUp();
33 artd_ = ndk::SharedRefBase::make<Artd>();
34 }
35
36 void TearDown() override { CommonArtTest::TearDown(); }
37
38 std::shared_ptr<Artd> artd_;
39};
40
41TEST_F(ArtdTest, isAlive) {
42 bool result = false;
43 artd_->isAlive(&result);
44 EXPECT_TRUE(result);
45}
46
47} // namespace
48} // namespace artd
49} // namespace art