diff options
author | Mike Yu <yumike@google.com> | 2019-03-13 17:15:48 +0800 |
---|---|---|
committer | Mike Yu <yumike@google.com> | 2019-04-03 11:46:52 +0800 |
commit | e7e332fc6caed28284895cbecac2b0bd4630b669 (patch) | |
tree | a92d74d3ac6a459db3d7666a955412a98efd7823 /client | |
parent | ccd04c58cf0dd6931272eddb092945b6185da513 (diff) | |
download | netd-e7e332fc6caed28284895cbecac2b0bd4630b669.tar.gz |
Move Stopwatch to libnetdutils
Move Stopwatch to libnetdutils as it is an useful utility across
netd and the resolver library.
Bug: 128662167
Test: system/netd/tests/runtests.sh passed
Change-Id: Iebaffc66202fbe3a787ca645847762af1ed94bd7
Diffstat (limited to 'client')
-rw-r--r-- | client/Android.bp | 2 | ||||
-rw-r--r-- | client/NetdClient.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/Android.bp b/client/Android.bp index 4c271175..25b4f9d1 100644 --- a/client/Android.bp +++ b/client/Android.bp @@ -25,7 +25,7 @@ cc_library { export_header_lib_headers: ["libnetd_client_headers"], include_dirs: [ "system/netd/resolv", - "system/netd/include", + "system/netd/libnetdutils/include", ], defaults: ["netd_defaults"], product_variables: { diff --git a/client/NetdClient.cpp b/client/NetdClient.cpp index 195c45d3..bc8d3fc1 100644 --- a/client/NetdClient.cpp +++ b/client/NetdClient.cpp @@ -32,12 +32,13 @@ #include "Fwmark.h" #include "FwmarkClient.h" #include "FwmarkCommand.h" -#include "Stopwatch.h" +#include "netdutils/Stopwatch.h" #include "netid_client.h" #include "android-base/unique_fd.h" using android::base::unique_fd; +using android::netdutils::Stopwatch; namespace { |