summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2018-02-27 17:58:11 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-27 17:58:11 +0000
commitacdbc8688e23b39ff311b4b554be3547a47245a3 (patch)
tree3ee81bb63dbae3ee5d4f8f56390a4ef77a22092f
parent6600af950e82a503ef45d097399d59443c52b632 (diff)
parentcec1f3d5d00836c9e7b9bf61aaa664e5305e45ff (diff)
downloadgatekeeper-acdbc8688e23b39ff311b4b554be3547a47245a3.tar.gz
am: cec1f3d5d0 Change-Id: I255262d3f99fdf57067105224c074c58738050c2
-rw-r--r--tests/Android.bp37
-rw-r--r--tests/Android.mk29
2 files changed, 37 insertions, 29 deletions
diff --git a/tests/Android.bp b/tests/Android.bp
new file mode 100644
index 0000000..2dcfc8b
--- /dev/null
+++ b/tests/Android.bp
@@ -0,0 +1,37 @@
+//
+// Copyright (C) 2015 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.
+//
+
+cc_test {
+ name: "gatekeeper-unit-tests",
+
+ cflags: [
+ "-g",
+ "-Wall",
+ "-Werror",
+ "-Wno-missing-field-initializers",
+ ],
+
+ shared_libs: [
+ "libgatekeeper",
+ "libcrypto",
+ "libhardware",
+ ],
+ static_libs: ["libscrypt_static"],
+ srcs: [
+ "gatekeeper_messages_test.cpp",
+ "gatekeeper_device_test.cpp",
+ ],
+}
diff --git a/tests/Android.mk b/tests/Android.mk
deleted file mode 100644
index 7fbca99..0000000
--- a/tests/Android.mk
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# Copyright (C) 2015 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.
-#
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := gatekeeper-unit-tests
-LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
-LOCAL_CFLAGS += -g -Wall -Werror -Wno-missing-field-initializers
-LOCAL_SHARED_LIBRARIES := libgatekeeper libcrypto libhardware
-LOCAL_STATIC_LIBRARIES := libscrypt_static
-LOCAL_C_INCLUDES := external/scrypt/lib/crypto
-LOCAL_SRC_FILES := \
- gatekeeper_messages_test.cpp \
- gatekeeper_device_test.cpp
-include $(BUILD_NATIVE_TEST)