1 /* 2 * Copyright (C) 2025 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 #include "unistd.h" 16 #include <thread> 17 #include <cstdio> 18 #include <cstring> 19 #include <map> 20 #include <gtest/gtest.h> 21 #include <sstream> 22 #include "editor_command.h" 23 #include "control_call_cmd.h" 24 25 using namespace testing::ext; 26 using namespace std; 27 28 namespace OHOS { 29 namespace SmartPerf { 30 class EditorCommandTest : public testing::Test { 31 public: SetUpTestCase()32 static void SetUpTestCase() {} TearDownTestCase()33 static void TearDownTestCase() {} 34 SetUp()35 void SetUp() {} TearDown()36 void TearDown() {} 37 }; 38 39 HWTEST_F(EditorCommandTest, EditorCommandTest01, TestSize.Level1) 40 { 41 int argc = 2; 42 std::vector<std::string> argv = {"arg1", "arg2"}; 43 EditorCommand editorCommand(argc, argv); 44 ASSERT_TRUE(true); 45 } 46 } 47 }