blob: cabe3bc2b2322d2d0415751f853df7260031b563 [file] [log] [blame]
Shawn Willden76364712014-08-11 17:48:04 -06001/*
2 * Copyright 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef SYSTEM_KEYMASTER_GOOGLE_KEYMASTER_TEST_UTILS_H_
18#define SYSTEM_KEYMASTER_GOOGLE_KEYMASTER_TEST_UTILS_H_
19
20/*
21 * Utilities used to help with testing. Not used in production code.
22 */
23
24#include <ostream>
25
26#include "keymaster_defs.h"
27#include "authorization_set.h"
28
29std::ostream& operator<<(std::ostream& os, const keymaster_key_param_t& param);
30bool operator==(const keymaster_key_param_t& a, const keymaster_key_param_t& b);
31
32namespace keymaster {
33bool operator==(const AuthorizationSet& a, const AuthorizationSet& b);
34std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set);
35} // namespace keymaster
36
37#endif // SYSTEM_KEYMASTER_GOOGLE_KEYMASTER_TEST_UTILS_H_