Skip to content

Commit 626de67

Browse files
gulfemsavrunCQ Bot
authored and
CQ Bot
committed
[netdevice] Remove const from MockEthernetImpl
llvm/llvm-project#121419 added -Wignored-qualifiers diagnostic for cv-qualified base classes. This patch removes const from MockEthernetImpl to fix the -Wignored-qualifiers error. Bug: 391704289 Change-Id: I0d5bce970d6e91febe7a5f775b35b0b2e1383245 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1192542 Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Bruno Dal Bo <[email protected]> Fuchsia-Auto-Submit: Gulfem Savrun Yeniceri <[email protected]>
1 parent 1be5fba commit 626de67

File tree

1 file changed

+2
-2
lines changed
  • src/connectivity/ethernet/drivers/ethernet/netdevice-migration

1 file changed

+2
-2
lines changed

src/connectivity/ethernet/drivers/ethernet/netdevice-migration/unit-tests.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ class NetdeviceMigrationTest : public ::testing::Test {
251251
testing::StrictMock<const MockNetworkDeviceIfc>& MockNetworkDevice() {
252252
return mock_network_device_ifc_;
253253
}
254-
testing::StrictMock<const MockEthernetImpl>& MockEthernet() { return mock_ethernet_impl_; }
254+
testing::StrictMock<MockEthernetImpl>& MockEthernet() { return mock_ethernet_impl_; }
255255
netdevice_migration::NetdeviceMigration& Device() { return *device_; }
256256
netdevice_migration::NetdeviceMigration* TakeDevice() { return device_.release(); }
257257

258258
private:
259259
const std::shared_ptr<MockDevice> parent_;
260260
testing::StrictMock<const MockNetworkDeviceIfc> mock_network_device_ifc_;
261-
testing::StrictMock<const MockEthernetImpl> mock_ethernet_impl_;
261+
testing::StrictMock<MockEthernetImpl> mock_ethernet_impl_;
262262
std::unique_ptr<netdevice_migration::NetdeviceMigration> device_;
263263
bool queued_rx_space_ = false;
264264
};

0 commit comments

Comments
 (0)