Fix for bug in Fix for wrongly initialized test key

With the last patch I exposed the auth token key to users of the
GenericOperation. But because the auth token key is never used in the
default implementation it did not show that the setHmacKey method did
not actually work. This patch fixes it.

Bug: 78456249
Test: Compile trusted app based on the GenericOperation
Change-Id: I25a80f985ce500e3658421cac62421133cc5b788
This commit is contained in:
Janis Danisevskis
2018-04-26 16:19:46 -07:00
parent ba2fa43da6
commit 0051181ac7

View File

@@ -58,7 +58,8 @@ class NullOr {
public:
NullOr() : value_(initializer_t<ValueT>::init()), null_(true) {}
NullOr(ValueT&& value) : value_(std::forward<ValueT>(value)), null_(false) {}
template <typename T>
NullOr(T&& value) : value_(std::forward<T>(value)), null_(false) {}
bool isOk() const { return !null_; }