Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c434641a authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

net_test_btif_avrcp_audio_track: Make host target am: 4df92eef

parents 564ef814 4df92eef
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -386,6 +386,7 @@ cc_test {
        "mts_defaults",
    ],
    test_suites: ["general-tests"],
    host_supported: true,
    include_dirs: btifCommonIncludes + [
        "frameworks/av/media/libaaudio/include",
    ],
@@ -406,11 +407,13 @@ cc_test {
        "libchrome",
        "libosi",
    ],
    shared_libs: [
        "liblog",
    ],
    cflags: [
        "-DBUILDCFG",
        "-Wno-unused-parameter",
    ],
    shared_libs: ["liblog"],
}

// btif rc unit tests for target
+6 −2
Original line number Diff line number Diff line
@@ -19,15 +19,19 @@

#include "btif_avrcp_audio_track.h"

#ifndef __INTRODUCED_IN
#define __INTRODUCED_IN(x)
#endif

#include <aaudio/AAudio.h>
#include <base/logging.h>
#include <utils/StrongPointer.h>

#include <algorithm>
#include <thread>

#include "bt_target.h"
#include "osi/include/log.h"
#include <thread>
#include "os/log.h"

using namespace android;

+20 −0
Original line number Diff line number Diff line
/*
 * Copyright 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "btif/include/btif_avrcp_audio_track.h"

#ifndef __INTRODUCED_IN
#define __INTRODUCED_IN(x)
#endif

#include <aaudio/AAudio.h>
#include <aaudio/AAudioTesting.h>
#include <gtest/gtest.h>
+2 −1
Original line number Diff line number Diff line
@@ -21,8 +21,9 @@

#include "test/common/mock_functions.h"

#undef __INTRODUCED_IN
#ifndef __INTRODUCED_IN
#define __INTRODUCED_IN(x)
#endif  // __INTRODUCED_IN

#include <aaudio/AAudio.h>
#include <aaudio/AAudioTesting.h>