Home
last modified time | relevance | path

Searched refs:FilePath (Results 1 – 25 of 71) sorted by relevance

123

/openbmc/telemetry/tests/src/
H A Dtest_persistent_json_storage.cpp14 using FilePath = interfaces::JsonStorage::FilePath; typedef in TestPersistentJsonStorage
30 const FilePath fileName = FilePath("report/1/file.txt");
59 sut.store(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F()
61 sut.store(FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F()
63 sut.store(FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F()
65 sut.store(FilePath("report/domain-2/name-1/conf-1.json"), in TEST_F()
70 UnorderedElementsAre(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F()
71 FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F()
72 FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F()
73 FilePath("report/domain-2/name-1/conf-1.json"))); in TEST_F()
[all …]
H A Dtest_trigger_manager.cpp451 using FilePath = interfaces::JsonStorage::FilePath; typedef in TestTriggerManagerStorage
457 .WillByDefault(Return(std::vector<FilePath>{ in SetUp()
458 {FilePath("trigger1")}, {FilePath("trigger2")}})); in SetUp()
460 ON_CALL(storageMock, load(FilePath("trigger1"))) in SetUp()
465 ON_CALL(storageMock, load(FilePath("trigger2"))) in SetUp()
511 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))).Times(0); in TEST_F()
521 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))).Times(0); in TEST_F()
534 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))); in TEST_F()
/openbmc/telemetry/src/interfaces/
H A Djson_storage.hpp16 BOOST_STRONG_TYPEDEF(std::filesystem::path, FilePath)
21 virtual void store(const FilePath& subPath, const nlohmann::json& data) = 0;
22 virtual bool remove(const FilePath& subPath) = 0;
23 virtual bool exist(const FilePath& path) const = 0;
25 const FilePath& subPath) const = 0;
26 virtual std::vector<FilePath> list() const = 0;
/openbmc/telemetry/tests/src/mocks/
H A Djson_storage_mock.hpp10 MOCK_METHOD(void, store, (const FilePath&, const nlohmann::json&),
12 MOCK_METHOD(bool, remove, (const FilePath&), (override));
13 MOCK_METHOD(bool, exist, (const FilePath&), (const, override));
14 MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&),
16 MOCK_METHOD(std::vector<FilePath>, list, (), (const, override));
/openbmc/telemetry/src/
H A Dpersistent_json_storage.hpp10 void store(const FilePath& subPath, const nlohmann::json& data) override;
11 bool remove(const FilePath& subPath) override;
12 bool exist(const FilePath& path) const override;
13 std::optional<nlohmann::json> load(const FilePath& subPath) const override;
14 std::vector<FilePath> list() const override;
H A Dpersistent_json_storage.cpp33 void PersistentJsonStorage::store(const FilePath& filePath, in store()
71 bool PersistentJsonStorage::remove(const FilePath& filePath) in remove()
99 const FilePath& filePath) const in load()
124 std::vector<interfaces::JsonStorage::FilePath> PersistentJsonStorage::list() in list()
127 std::vector<interfaces::JsonStorage::FilePath> result; in list()
162 bool PersistentJsonStorage::exist(const FilePath& subPath) const in exist()
/openbmc/qemu/tests/qemu-iotests/
H A D25632 with iotests.FilePath('img0') as img0_path, \
33 iotests.FilePath('img1') as img1_path, \
34 iotests.FilePath('img0-full') as img0_full_path, \
35 iotests.FilePath('img1-full') as img1_full_path, \
36 iotests.FilePath('img0-incr') as img0_incr_path, \
37 iotests.FilePath('img1-incr') as img1_incr_path, \
H A D25533 with iotests.FilePath('t.qcow2') as disk_path, \
34 iotests.FilePath('t.qcow2.mid') as mid_path, \
35 iotests.FilePath('t.qcow2.base') as base_path, \
85 with iotests.FilePath('src.qcow2') as src_path, \
86 iotests.FilePath('dst.qcow2') as dst_path, \
H A D25869 with iotests.FilePath('node4.img') as node4_path, \
70 iotests.FilePath('node3.img') as node3_path, \
71 iotests.FilePath('node2.img') as node2_path, \
72 iotests.FilePath('node1.img') as node1_path, \
73 iotests.FilePath('node0.img') as node0_path, \
H A D20231 with iotests.FilePath('disk0.img') as disk0_img_path, \
32 iotests.FilePath('disk1.img') as disk1_img_path, \
33 iotests.FilePath('disk0-snap.img') as disk0_snap_img_path, \
34 iotests.FilePath('disk1-snap.img') as disk1_snap_img_path, \
H A D20828 with iotests.FilePath('disk.img') as disk_img_path, \
29 iotests.FilePath('disk-snapshot.img') as disk_snapshot_img_path, \
30 iotests.FilePath('nbd.sock', base_dir=iotests.sock_dir) as nbd_sock_path, \
H A D23430 with iotests.FilePath('img') as img_path, \
31 iotests.FilePath('backing') as backing_path, \
32 iotests.FilePath('mig_fifo_a') as fifo_a, \
33 iotests.FilePath('mig_fifo_b') as fifo_b, \
H A D31038 with iotests.FilePath('base.img') as base_img_path, \
39 iotests.FilePath('mid.img') as mid_img_path, \
40 iotests.FilePath('top.img') as top_img_path, \
H A D23730 with iotests.FilePath('t.vmdk') as disk_path, \
31 iotests.FilePath('t.vmdk.1') as extent1_path, \
32 iotests.FilePath('t.vmdk.2') as extent2_path, \
33 iotests.FilePath('t.vmdk.3') as extent3_path, \
H A D22445 with iotests.FilePath('base.img') as base_img_path, \
46 iotests.FilePath('mid.img') as mid_img_path, \
47 iotests.FilePath('top.img') as top_img_path, \
H A D19428 with iotests.FilePath('source.img') as source_img_path, \
29 iotests.FilePath('dest.img') as dest_img_path, \
30 iotests.FilePath('migration.sock', 'nbd.sock', base_dir=iotests.sock_dir) \
H A D21647 with iotests.FilePath('base.img') as base_img_path, \
48 iotests.FilePath('top.img') as top_img_path, \
H A D20332 with iotests.FilePath('disk0.img') as disk0_img_path, \
33 iotests.FilePath('disk1.img') as disk1_img_path, \
H A D28032 with iotests.FilePath('base') as base_path , \
33 iotests.FilePath('top') as top_path, \
H A D26231 with iotests.FilePath('img') as img_path, \
32 iotests.FilePath('mig_fifo') as fifo, \
/openbmc/qemu/tests/qemu-iotests/tests/
H A Diothreads-stream28 with iotests.FilePath('disk1.img') as base1_path, \
29 iotests.FilePath('disk1-snap.img') as snap1_path, \
30 iotests.FilePath('disk2.img') as base2_path, \
31 iotests.FilePath('disk2-snap.img') as snap2_path, \
H A Diothreads-commit-active28 with iotests.FilePath('disk0.img') as img_path, \
29 iotests.FilePath('disk0-snap.img') as snap_path, \
30 iotests.FilePath('mirror-src.img') as src_path, \
31 iotests.FilePath('mirror-dst.img') as dst_path, \
H A Dimage-fleecing280 with iotests.FilePath('base.img') as base_img_path, \
281 iotests.FilePath('fleece.img') as fleece_img_path, \
288 with iotests.FilePath('nbd.sock',
294 with iotests.FilePath('target.img') as target_img_path:
H A Diothreads-nbd-export28 with iotests.FilePath('disk1.img') as path, \
29 iotests.FilePath('nbd.sock', base_dir=iotests.sock_dir) as nbd_sock, \
/openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Common/FilePath/
H A Dmeson.build3 sdbusplus_current_path = 'xyz/openbmc_project/Common/FilePath'
8 '../../../../../yaml/xyz/openbmc_project/Common/FilePath.interface.yaml',
28 'xyz/openbmc_project/Common/FilePath',

123