Snap for 6437181 from bed9ac393e
to mainline-release
Change-Id: I549816ccb30e31f115edcd3073e2410fea3f3260
This commit is contained in:
commit
2b995cef9d
|
@ -182,7 +182,7 @@ class _NODISCARD_ expected {
|
|||
!std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
|
||||
std::is_convertible_v<U&&, T> /* non-explicit */
|
||||
)>
|
||||
// NOLINTNEXTLINE(google-explicit-constructor)
|
||||
// NOLINTNEXTLINE(google-explicit-constructor,bugprone-forwarding-reference-overload)
|
||||
constexpr expected(U&& v) : var_(std::in_place_index<0>, std::forward<U>(v)) {}
|
||||
|
||||
template <class U = T _ENABLE_IF(
|
||||
|
@ -192,6 +192,7 @@ class _NODISCARD_ expected {
|
|||
!std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
|
||||
!std::is_convertible_v<U&&, T> /* explicit */
|
||||
)>
|
||||
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
|
||||
constexpr explicit expected(U&& v) : var_(std::in_place_index<0>, T(std::forward<U>(v))) {}
|
||||
|
||||
template<class G = E _ENABLE_IF(
|
||||
|
@ -607,7 +608,7 @@ class unexpected {
|
|||
std::is_constructible_v<E, Err> &&
|
||||
!std::is_same_v<std::remove_cv_t<std::remove_reference_t<E>>, std::in_place_t> &&
|
||||
!std::is_same_v<std::remove_cv_t<std::remove_reference_t<E>>, unexpected>)>
|
||||
// NOLINTNEXTLINE(google-explicit-constructor)
|
||||
// NOLINTNEXTLINE(google-explicit-constructor,bugprone-forwarding-reference-overload)
|
||||
constexpr unexpected(Err&& e) : val_(std::forward<Err>(e)) {}
|
||||
|
||||
template<class U, class... Args _ENABLE_IF(
|
||||
|
|
|
@ -130,6 +130,7 @@ class Error {
|
|||
|
||||
template <typename T>
|
||||
Error& operator<<(T&& t) {
|
||||
// NOLINTNEXTLINE(bugprone-suspicious-semicolon)
|
||||
if constexpr (std::is_same_v<std::remove_cv_t<std::remove_reference_t<T>>, ResultError>) {
|
||||
errno_ = t.code();
|
||||
return (*this) << t.message();
|
||||
|
|
|
@ -84,17 +84,21 @@ cc_test {
|
|||
}
|
||||
|
||||
cc_fuzz {
|
||||
name: "dm_linear_table_fuzzer",
|
||||
defaults: ["fs_mgr_defaults"],
|
||||
srcs: [
|
||||
"dm_linear_fuzzer.cpp",
|
||||
"test_util.cpp",
|
||||
],
|
||||
static_libs: [
|
||||
name: "dm_linear_table_fuzzer",
|
||||
defaults: ["fs_mgr_defaults"],
|
||||
srcs: [
|
||||
"dm_linear_fuzzer.cpp",
|
||||
"test_util.cpp",
|
||||
],
|
||||
static_libs: [
|
||||
"libdm",
|
||||
"libbase",
|
||||
"libext2_uuid",
|
||||
"libfs_mgr",
|
||||
"liblog",
|
||||
],
|
||||
],
|
||||
}
|
||||
|
||||
vts_config {
|
||||
name: "VtsKernelLibdmTest",
|
||||
}
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2018 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 := VtsKernelLibdmTest
|
||||
-include test/vts/tools/build/Android.host_config.mk
|
|
@ -108,3 +108,6 @@ cc_test {
|
|||
defaults: ["liblp_test_defaults"],
|
||||
}
|
||||
|
||||
vts_config {
|
||||
name: "VtsKernelLiblpTest",
|
||||
}
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2018 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 := VtsKernelLiblpTest
|
||||
-include test/vts/tools/build/Android.host_config.mk
|
|
@ -106,3 +106,7 @@ cc_test {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
vts_config {
|
||||
name: "VtsProcessgroupValidateTest",
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2019 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 := VtsProcessgroupValidateTest
|
||||
-include test/vts/tools/build/Android.host_config.mk
|
Loading…
Reference in New Issue