Index: mojo/edk/system/data_pipe_unittest.cc |
diff --git a/mojo/edk/system/data_pipe_unittest.cc b/mojo/edk/system/data_pipe_unittest.cc |
index ad02222ddb1c19ed33087fd445510abff5ce2190..8d2e4eb038efee84bc5afa95019bf7f1f23ab8bb 100644 |
--- a/mojo/edk/system/data_pipe_unittest.cc |
+++ b/mojo/edk/system/data_pipe_unittest.cc |
@@ -9,7 +9,7 @@ |
#include <limits> |
-#include "mojo/edk/system/configuration.h" |
+#include "mojo/edk/system/constants.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace mojo { |
@@ -28,8 +28,9 @@ |
// Nothing to check for flags. |
EXPECT_GT(validated_options.element_num_bytes, 0u); |
EXPECT_GT(validated_options.capacity_num_bytes, 0u); |
- EXPECT_EQ(0u, validated_options.capacity_num_bytes % |
- validated_options.element_num_bytes); |
+ EXPECT_EQ(0u, |
+ validated_options.capacity_num_bytes % |
+ validated_options.element_num_bytes); |
MojoCreateDataPipeOptions revalidated_options = {}; |
EXPECT_EQ(MOJO_RESULT_OK, |
@@ -47,10 +48,10 @@ |
// checks done by |RevalidateCreateOptions()|.) |
void CheckDefaultCapacity(const MojoCreateDataPipeOptions& validated_options) { |
EXPECT_LE(validated_options.capacity_num_bytes, |
- GetConfiguration().default_data_pipe_capacity_bytes); |
+ kDefaultDataPipeCapacityBytes); |
EXPECT_GT(validated_options.capacity_num_bytes + |
validated_options.element_num_bytes, |
- GetConfiguration().default_data_pipe_capacity_bytes); |
+ kDefaultDataPipeCapacityBytes); |
} |
// Tests valid inputs to |ValidateCreateOptions()|. |
@@ -58,8 +59,9 @@ |
// Default options. |
{ |
MojoCreateDataPipeOptions validated_options = {}; |
- EXPECT_EQ(MOJO_RESULT_OK, DataPipe::ValidateCreateOptions( |
- NullUserPointer(), &validated_options)); |
+ EXPECT_EQ( |
+ MOJO_RESULT_OK, |
+ DataPipe::ValidateCreateOptions(NullUserPointer(), &validated_options)); |
RevalidateCreateOptions(validated_options); |
CheckDefaultCapacity(validated_options); |
} |