Skip to content

Commit

Permalink
[device] add test for UdevLoader::Get
Browse files Browse the repository at this point in the history
Let me add a sanity check just to confirm UdevLoader::Get() works.
I will use this test to investigate loader behavior in msan on xenial.

Bug: 981731
Change-Id: I824f95767cb4ccdb73f544e8cea670571b1cc8d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1697661
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676499}
  • Loading branch information
Takuto Ikuta authored and Commit Bot committed Jul 11, 2019
1 parent f71e81c commit a921e21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions device/udev_linux/udev_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// found in the LICENSE file.

#include "device/udev_linux/udev.h"
#include "device/udev_linux/udev_loader.h"

#include "testing/gtest/include/gtest/gtest.h"

Expand All @@ -18,4 +19,8 @@ TEST(UdevTest, DecodeString) {
ASSERT_EQ("E-MU Systems,Inc.", UdevDecodeString("E-MU\\x20Systems\\x2cInc."));
}

TEST(UdevTest, Loader) {
ASSERT_NE(nullptr, UdevLoader::Get());
}

} // namespace device

0 comments on commit a921e21

Please sign in to comment.