-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{Feature} VrsDataProvider - Support retrieval of the VRS file tags (#102
) Summary: Pull Request resolved: #102 VRS file tags can be retrieved in VRS file reader classes. Modified `VrsDataProvider` to use this functionality through `RecordReaderInterface`. Added the Python binding for the new `VrsDataProvider::getFileTags` function in `VrsDataProviderPyBind.h`. Reviewed By: SeaOtocinclus Differential Revision: D58093298 fbshipit-source-id: b1f58d9740d5745281cef0c716c63b19d9904ee7
- Loading branch information
1 parent
63c4272
commit 844149c
Showing
7 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include <data_provider/VrsDataProvider.h> | ||
|
||
#include <gtest/gtest.h> | ||
|
||
using namespace projectaria::tools::data_provider; | ||
|
||
#define STRING(x) #x | ||
#define XSTRING(x) std::string(STRING(x)) + "aria_unit_test_sequence_calib.vrs" | ||
|
||
static const std::string ariaTestDataPath = XSTRING(TEST_FOLDER); | ||
|
||
#define DEFAULT_LOG_CHANNEL "TestLog" | ||
#include <logging/Checks.h> | ||
#include <logging/Log.h> | ||
|
||
namespace { | ||
constexpr const uint32_t kFileTagsNum = 25; | ||
} | ||
|
||
TEST(VrsDataProvider, getFileTags) { | ||
auto provider = createVrsDataProvider(ariaTestDataPath); | ||
auto fileTags = provider->getFileTags(); | ||
EXPECT_EQ(fileTags.size(), kFileTagsNum); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters