1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include <fcntl.h> 17 #include <gmock/gmock.h> 18 #include <gtest/gtest.h> 19 #include <iostream> 20 #include <string> 21 #include "applypatch/transfer_manager.h" 22 #include "log/log.h" 23 24 using namespace testing::ext; 25 using namespace Updater; 26 using namespace std; 27 28 namespace UpdaterUt { 29 class BspatchUnitTest : public testing::Test { 30 public: 31 static void SetUpTestCase(void); TearDownTestCase(void)32 static void TearDownTestCase(void) {}; 33 void SetUp(); 34 void TearDown(); 35 }; 36 SetUpTestCase()37void BspatchUnitTest::SetUpTestCase() 38 { 39 cout << "Updater Unit BspatchUnitTest Setup!" << endl; 40 } 41 SetUp()42void BspatchUnitTest::SetUp() 43 { 44 cout << "Updater Unit BspatchUnitTest Begin!" << endl; 45 } 46 TearDown()47void BspatchUnitTest::TearDown() 48 { 49 cout << "Updater Unit BspatchUnitTest End!" << endl; 50 } 51 52 HWTEST_F(BspatchUnitTest, bspatch_test_001, TestSize.Level1) 53 { 54 std::string partitionName; 55 std::string transferName; 56 std::string newDataName; 57 std::string patchDataName; 58 } 59 } // updater_ut 60