Skip to content

Commit

Permalink
gNOI Cold Reboot - Integrated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rkavitha-hcl authored and Bibhuprasad Singh committed Dec 3, 2024
1 parent 4be941b commit efa4a2b
Show file tree
Hide file tree
Showing 6 changed files with 694 additions and 120 deletions.
80 changes: 0 additions & 80 deletions src/sonic-framework/rebootbackend/redis_utils.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions src/sonic-framework/rebootbackend/redis_utils.h

This file was deleted.

18 changes: 18 additions & 0 deletions src/sonic-framework/tests/mock_reboot_interfaces.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once
#include <gmock/gmock.h>

#include "reboot_interfaces.h"
#include "selectableevent.h"
#include "system/system.pb.h"

namespace rebootbackend {

class MockDbusInterface : public DbusInterface {
public:
MOCK_METHOD(DbusInterface::DbusResponse, Reboot, (const std::string &),
(override));
MOCK_METHOD(DbusInterface::DbusResponse, RebootStatus, (const std::string &),
(override));
};

} // namespace rebootbackend
Loading

0 comments on commit efa4a2b

Please sign in to comment.