Skip to content

Commit 936cf7d

Browse files
[devtools] Omit leading Cvendor delimiter :: in API identifier
1 parent d0c0775 commit 936cf7d

File tree

48 files changed

+51
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+51
-51
lines changed

libs/rtemodel/src/RteItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ string RteItem::GetPartialComponentID(bool bWithBundle) const {
209209

210210
string RteItem::GetApiID(bool withVersion) const
211211
{
212-
string id = RteConstants::SUFFIX_CVENDOR;
212+
string id;
213213
id += GetCclassName();
214214
id += RteConstants::PREFIX_CGROUP;
215215
id += GetCgroupName();

libs/rtemodel/test/src/RteItemTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ TEST(RteItemTest, GetComponentID_all_attributes) {
2828
RteItem item(attributes);
2929
item.SetTag("require");
3030

31-
EXPECT_EQ("::Class:Group(API)@1.1.1", item.GetApiID(true));
32-
EXPECT_EQ("::Class:Group(API)", item.GetApiID(false));
31+
EXPECT_EQ("Class:Group(API)@1.1.1", item.GetApiID(true));
32+
EXPECT_EQ("Class:Group(API)", item.GetApiID(false));
3333

3434
EXPECT_EQ("Vendor::Class&Bundle:Group:Sub&[email protected]", item.GetComponentID(true));
3535
EXPECT_EQ("Vendor::Class&Bundle:Group:Sub&Variant", item.GetComponentID(false));

libs/rtemodel/test/src/RteModelTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ TEST(RteModelTest, LoadPacks) {
243243
EXPECT_FALSE(c != nullptr);
244244

245245
// get API
246-
const string& apiId = "::RteTest:CORE(API)";
246+
const string& apiId = "RteTest:CORE(API)";
247247
RteApi* api = rteModel->GetLatestApi(apiId);
248248
ASSERT_TRUE(api);
249-
EXPECT_EQ(api->GetID(), "::RteTest:CORE(API)@1.1.2");
249+
EXPECT_EQ(api->GetID(), "RteTest:CORE(API)@1.1.2");
250250
EXPECT_EQ(api->GetPackageID(), "ARM::[email protected]");
251251

252252
// make pack "dominant"
@@ -257,7 +257,7 @@ TEST(RteModelTest, LoadPacks) {
257257
pack->Construct(); // refresh internal state
258258
api = rteModel->GetLatestApi(apiId);
259259
ASSERT_TRUE(api);
260-
EXPECT_EQ(api->GetID(), "::RteTest:CORE(API)@1.1.1");
260+
EXPECT_EQ(api->GetID(), "RteTest:CORE(API)@1.1.1");
261261
EXPECT_EQ(api->GetPackageID(), "ARM::[email protected]");
262262
}
263263

test/projects/RteTestM3/license_info_ref.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ licenses:
1111
packs:
1212
- pack: ARM::[email protected]
1313
components:
14-
- component: ::RteTest:CORE(API)
1514
- component: ARM::Device:Startup&RteTest [email protected]
1615
- component: ARM::RteTest:[email protected]
16+
- component: RteTest:CORE(API)
1717

1818
- license: BSD-3-Clause
1919
packs:

tools/projmgr/test/data/TestAccessSequences/ref/pack-access-sequences+CM4-Board.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ build:
7171
packs:
7272
- pack: ARM::[email protected]
7373
components:
74-
- component: ::RteTest:CORE(API)
7574
- component: ARM::RteTest:[email protected]
75+
- component: RteTest:CORE(API)

tools/projmgr/test/data/TestDefault/ref/empty/project.Debug+TEST_TARGET.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ build:
6868
packs:
6969
- pack: ARM::[email protected]
7070
components:
71-
- component: ::RteTest:CORE(API)
7271
- component: ARM::RteTest:[email protected]
72+
- component: RteTest:CORE(API)

tools/projmgr/test/data/TestDefault/ref/empty/project.Release+TEST_TARGET.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ build:
6868
packs:
6969
- pack: ARM::[email protected]
7070
components:
71-
- component: ::RteTest:CORE(API)
7271
- component: ARM::RteTest:[email protected]
72+
- component: RteTest:CORE(API)

tools/projmgr/test/data/TestGenerator/ref/multiple-components.Debug+CM0.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ build:
119119
packs:
120120
- pack: ARM::[email protected]
121121
components:
122-
- component: ::RteTest:CORE(API)
123122
- component: ARM::RteTest:[email protected]
123+
- component: RteTest:CORE(API)

tools/projmgr/test/data/TestGenerator/ref/test-gpdsc-layer.Debug+CM0.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,5 @@ build:
107107
packs:
108108
- pack: ARM::[email protected]
109109
components:
110-
- component: ::RteTest:CORE(API)
111110
- component: ARM::RteTest:[email protected]
111+
- component: RteTest:CORE(API)

tools/projmgr/test/data/TestGenerator/ref/test-gpdsc-multiple-generators.Debug+CM0.cbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,5 @@ build:
145145
packs:
146146
- pack: ARM::[email protected]
147147
components:
148-
- component: ::RteTest:CORE(API)
149148
- component: ARM::RteTest:[email protected]
149+
- component: RteTest:CORE(API)

0 commit comments

Comments
 (0)