Remove service/native/include/Common.h
Move the remaining contents of Common.h to clatutils_test.cpp and remove Common.h Bug: 217624062 Test: TH Change-Id: Ie0615b42a3a1bf4c07e9196128fe0850a448fb35
This commit is contained in:
parent
b51381e0e1
commit
3b477129dd
3 changed files with 8 additions and 24 deletions
|
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2022 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
// TODO: deduplicate with the constants in NetdConstants.h.
|
||||
#include <aidl/android/net/INetd.h>
|
||||
#include "clat_mark.h"
|
||||
|
||||
using aidl::android::net::INetd;
|
||||
|
||||
static_assert(INetd::CLAT_MARK == CLAT_MARK, "must be 0xDEADC1A7");
|
||||
|
|
@ -43,11 +43,15 @@ cc_test {
|
|||
srcs: [
|
||||
"clatutils_test.cpp",
|
||||
],
|
||||
header_libs: [
|
||||
"bpf_connectivity_headers",
|
||||
],
|
||||
static_libs: [
|
||||
"libbase",
|
||||
"libclat",
|
||||
"libip_checksum",
|
||||
"libnetd_test_tun_interface",
|
||||
"netd_aidl_interface-lateststable-ndk",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ extern "C" {
|
|||
#include "checksum.h"
|
||||
}
|
||||
|
||||
#include <aidl/android/net/INetd.h>
|
||||
#include "clat_mark.h"
|
||||
static_assert(aidl::android::net::INetd::CLAT_MARK == CLAT_MARK, "must be 0xDEADC1A7");
|
||||
|
||||
// Default translation parameters.
|
||||
static const char kIPv4LocalAddr[] = "192.0.0.4";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue