From 3cc36433d594c7c9c30b1a2fbab9777608798159 Mon Sep 17 00:00:00 2001 From: rafi Date: Tue, 24 Sep 2024 13:49:56 +0530 Subject: [PATCH] mockadded --- .github/workflows/rdk_unit_test.yml | 1 + Tests/.clang-format | 108 ---------------------------- Tests/mocks/CMakeLists.txt | 6 -- 3 files changed, 1 insertion(+), 114 deletions(-) delete mode 100644 Tests/.clang-format diff --git a/.github/workflows/rdk_unit_test.yml b/.github/workflows/rdk_unit_test.yml index 32d4d786..f9392c32 100644 --- a/.github/workflows/rdk_unit_test.yml +++ b/.github/workflows/rdk_unit_test.yml @@ -142,6 +142,7 @@ jobs: -DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" -I ${{github.workspace}}/networkmanager/Tests/headers -I ${{github.workspace}}/networkmanager/Tests/headers/rdk/iarmbus" + -I ${{github.workspace}}/networkmanager/Tests/mocks" -DENABLE_NETWORKMANAGER_UNIT_TEST=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} && diff --git a/Tests/.clang-format b/Tests/.clang-format deleted file mode 100644 index 423360be..00000000 --- a/Tests/.clang-format +++ /dev/null @@ -1,108 +0,0 @@ ---- -Language: Cpp -# BasedOnStyle: WebKit -AccessModifierOffset: -4 -AlignAfterOpenBracket: DontAlign -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignEscapedNewlines: Right -AlignOperands: false -AlignTrailingComments: false -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: false -AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: None -AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false -BinPackArguments: true -BinPackParameters: true -BraceWrapping: - AfterClass: false - AfterControlStatement: false - AfterEnum: false - AfterFunction: true - AfterNamespace: false - AfterObjCDeclaration: false - AfterStruct: false - AfterUnion: false - BeforeCatch: false - BeforeElse: false - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: true - SplitEmptyNamespace: true -BreakBeforeBinaryOperators: All -BreakBeforeBraces: WebKit -BreakBeforeInheritanceComma: false -BreakBeforeTernaryOperators: true -BreakConstructorInitializersBeforeComma: false -BreakConstructorInitializers: BeforeComma -BreakAfterJavaFieldAnnotations: false -BreakStringLiterals: true -ColumnLimit: 0 -CommentPragmas: '^ IWYU pragma:' -CompactNamespaces: false -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ConstructorInitializerIndentWidth: 4 -ContinuationIndentWidth: 4 -Cpp11BracedListStyle: false -DerivePointerAlignment: false -DisableFormat: false -ExperimentalAutoDetectBinPacking: false -FixNamespaceComments: false -ForEachMacros: - - foreach - - Q_FOREACH - - BOOST_FOREACH -IncludeCategories: - - Regex: '^"config\.h"' - Priority: -1 - # The main header for a source file automatically gets category 0 - - Regex: '.*' - Priority: 1 - - Regex: '^<.*\.h>' - Priority: 2 -IncludeIsMainRegex: '(Test)?$' -IndentCaseLabels: false -IndentWidth: 4 -IndentWrappedFunctionNames: false -JavaScriptQuotes: Leave -JavaScriptWrapImports: true -KeepEmptyLinesAtTheStartOfBlocks: true -MacroBlockBegin: '' -MacroBlockEnd: '' -MaxEmptyLinesToKeep: 1 -NamespaceIndentation: Inner -ObjCBlockIndentWidth: 4 -ObjCSpaceAfterProperty: true -ObjCSpaceBeforeProtocolList: true -PenaltyBreakAssignment: 2 -PenaltyBreakBeforeFirstCallParameter: 19 -PenaltyBreakComment: 300 -PenaltyBreakFirstLessLess: 120 -PenaltyBreakString: 1000 -PenaltyExcessCharacter: 1000000 -PenaltyReturnTypeOnItsOwnLine: 60 -PointerAlignment: Left -ReflowComments: true -SortIncludes: true -SortUsingDeclarations: true -SpaceAfterCStyleCast: false -SpaceAfterTemplateKeyword: true -SpaceBeforeAssignmentOperators: true -SpaceBeforeParens: ControlStatements -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: false -SpacesInContainerLiterals: true -SpacesInCStyleCastParentheses: false -SpacesInParentheses: false -SpacesInSquareBrackets: false -Standard: Cpp11 -TabWidth: 4 -UseTab: Never -... diff --git a/Tests/mocks/CMakeLists.txt b/Tests/mocks/CMakeLists.txt index 310b5075..9b9a65b6 100644 --- a/Tests/mocks/CMakeLists.txt +++ b/Tests/mocks/CMakeLists.txt @@ -27,13 +27,7 @@ FetchContent_MakeAvailable(googletest) add_library(${MODULE_NAME} SHARED - Rfc.cpp Iarm.cpp - Wraps.cpp - RBus.cpp - Telemetry.cpp - devicesettings.cpp - Udev.cpp ) target_link_libraries(${MODULE_NAME} PRIVATE gmock_main)