Dichen Zhang | 85b3756 | 2022-10-11 11:08:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2022 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 | |
Nick Deakin | 594a4ca | 2022-11-16 20:57:42 -0500 | [diff] [blame^] | 17 | #include <gtest/gtest.h> |
Dichen Zhang | 85b3756 | 2022-10-11 11:08:28 -0700 | [diff] [blame] | 18 | #include <jpegrecoverymap/recoverymap.h> |
| 19 | |
Nick Deakin | 594a4ca | 2022-11-16 20:57:42 -0500 | [diff] [blame^] | 20 | namespace android::recoverymap { |
Dichen Zhang | 85b3756 | 2022-10-11 11:08:28 -0700 | [diff] [blame] | 21 | |
Nick Deakin | 594a4ca | 2022-11-16 20:57:42 -0500 | [diff] [blame^] | 22 | class RecoveryMapTest : public testing::Test { |
| 23 | public: |
| 24 | RecoveryMapTest(); |
| 25 | ~RecoveryMapTest(); |
| 26 | protected: |
| 27 | virtual void SetUp(); |
| 28 | virtual void TearDown(); |
| 29 | }; |
| 30 | |
| 31 | RecoveryMapTest::RecoveryMapTest() {} |
| 32 | RecoveryMapTest::~RecoveryMapTest() {} |
| 33 | |
| 34 | void RecoveryMapTest::SetUp() {} |
| 35 | void RecoveryMapTest::TearDown() {} |
| 36 | |
| 37 | TEST_F(RecoveryMapTest, build) { |
| 38 | // Force all of the recovery map lib to be linked by calling all public functions. |
| 39 | RecoveryMap recovery_map; |
| 40 | recovery_map.encodeJPEGR(nullptr, nullptr, nullptr, 0, nullptr); |
| 41 | recovery_map.encodeJPEGR(nullptr, nullptr, nullptr, nullptr); |
| 42 | recovery_map.encodeJPEGR(nullptr, nullptr, nullptr); |
| 43 | recovery_map.decodeJPEGR(nullptr, nullptr, nullptr, false); |
| 44 | } |
| 45 | |
| 46 | } // namespace android::recoverymap |