fake_network_detailed_view_delegate.cc 766 B

12345678910111213141516171819202122232425
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/system/network/fake_network_detailed_view_delegate.h"
  5. #include "chromeos/services/network_config/public/mojom/cros_network_config.mojom.h"
  6. namespace ash {
  7. namespace {
  8. using chromeos::network_config::mojom::NetworkStatePropertiesPtr;
  9. }
  10. FakeNetworkDetailedViewDelegate::FakeNetworkDetailedViewDelegate() {}
  11. FakeNetworkDetailedViewDelegate::~FakeNetworkDetailedViewDelegate() = default;
  12. void FakeNetworkDetailedViewDelegate::OnNetworkListItemSelected(
  13. const NetworkStatePropertiesPtr& network) {
  14. last_network_list_item_selected_ = mojo::Clone(network);
  15. }
  16. } // namespace ash