| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "device/bluetooth/test/fake_bluetooth_le_advertisement_publisher_status_changed_event_args_winrt.h" |
| |
| namespace device { |
| |
| namespace { |
| |
| using ABI::Windows::Devices::Bluetooth::Advertisement:: |
| BluetoothLEAdvertisementPublisherStatus; |
| using ABI::Windows::Devices::Bluetooth::BluetoothError; |
| |
| } // namespace |
| |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt:: |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt( |
| BluetoothLEAdvertisementPublisherStatus status) |
| : status_(status) {} |
| |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt:: |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt( |
| BluetoothLEAdvertisementPublisherStatus status, |
| BluetoothError error) |
| : status_(status), error_(error) {} |
| |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt:: |
| ~FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt() = |
| default; |
| |
| HRESULT |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt::get_Status( |
| BluetoothLEAdvertisementPublisherStatus* value) { |
| *value = status_; |
| return S_OK; |
| } |
| |
| HRESULT |
| FakeBluetoothLEAdvertisementPublisherStatusChangedEventArgsWinrt::get_Error( |
| BluetoothError* value) { |
| *value = error_; |
| return S_OK; |
| } |
| |
| } // namespace device |