aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFletcher Woodruff <fletcherw@chromium.org>2020-07-11 08:18:10 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-13 21:00:03 +0000
commitfbaf6b33efd59349927372f69705a3fa2d637b46 (patch)
treeaa488d935788ca62597ac99ea78e837eabe08974
parent0c3c1dff4cc0fc69bd7c88cc014194e6a55b438c (diff)
downloadplatform_external_libbrillo-fbaf6b33efd59349927372f69705a3fa2d637b46.tar.gz
platform_external_libbrillo-fbaf6b33efd59349927372f69705a3fa2d637b46.tar.bz2
platform_external_libbrillo-fbaf6b33efd59349927372f69705a3fa2d637b46.zip
libbrillo: rename util namespace to 'internal'
In mock_dbus_method_response.h, rename the 'MockDBusMethodResponseUtils' namespace to 'internal', to more accurately reflect its usage as helpers for the implementation. BUG=chromium:1099473 TEST=build Change-Id: I53b81cad68efbaa9882e9f3702d2e8422ce33d6a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2293508 Tested-by: Fletcher Woodruff <fletcherw@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: Fletcher Woodruff <fletcherw@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2 Cr-Mirrored-Commit: 70b876e7f9bce3defa11f79e36a6b1297e5451a8
-rw-r--r--brillo/dbus/mock_dbus_method_response.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/brillo/dbus/mock_dbus_method_response.h b/brillo/dbus/mock_dbus_method_response.h
index 18db45f..8ec624b 100644
--- a/brillo/dbus/mock_dbus_method_response.h
+++ b/brillo/dbus/mock_dbus_method_response.h
@@ -17,7 +17,7 @@ namespace brillo {
namespace dbus_utils {
-namespace MockDBusMethodResponseUtils {
+namespace internal {
// CreateSaveArgsOnceFn is simple helper template for generating function that
// will save the content of its parameter into the pointers given to
@@ -64,7 +64,7 @@ base::Callback<void(const First&, const Rest&...)> CreateSaveArgsOnceFn(
CreateSaveArgsOnceFn<Rest...>(rest_dest...), first_dest);
}
-} // namespace MockDBusMethodResponseUtils
+} // namespace internal
// Mock DBusMethodResponse for capturing the output of async dbus calls.
// There are 2 ways to use this class:
@@ -181,8 +181,7 @@ class MockDBusMethodResponse
// into |destination|.
void save_return_args(base::Optional<Types>*... destination) {
set_return_callback(
- MockDBusMethodResponseUtils::CreateSaveArgsOnceFn<Types...>(
- destination...));
+ internal::CreateSaveArgsOnceFn<Types...>(destination...));
}
private: