[M71 Dev][Tizen] Fix compiler errors
[platform/framework/web/chromium-efl.git] / device / serial / serial_device_enumerator_unittest.cc
1 // Copyright 2018 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
5 #include "device/serial/serial_device_enumerator.h"
6
7 #include <memory>
8 #include <vector>
9
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 namespace device {
13
14 TEST(SerialDeviceEnumeratorTest, GetDevices) {
15   // There is no guarantee that a test machine will have a serial device
16   // available. The purpose of this test is to ensure that the process of
17   // attempting to enumerate devices does not cause a crash.
18   auto enumerator = SerialDeviceEnumerator::Create();
19   ASSERT_TRUE(enumerator);
20   std::vector<mojom::SerialDeviceInfoPtr> devices = enumerator->GetDevices();
21 }
22
23 }  // namespace device