| Index: third_party/crashpad/crashpad/util/linux/address_types.h
|
| diff --git a/third_party/crashpad/crashpad/test/hex_string_test.cc b/third_party/crashpad/crashpad/util/linux/address_types.h
|
| similarity index 60%
|
| copy from third_party/crashpad/crashpad/test/hex_string_test.cc
|
| copy to third_party/crashpad/crashpad/util/linux/address_types.h
|
| index 62b45c1260ed1d17223b312c4be51ab10cf791f1..8c8f13d77a85e456ddd4276d478a1ab439192830 100644
|
| --- a/third_party/crashpad/crashpad/test/hex_string_test.cc
|
| +++ b/third_party/crashpad/crashpad/util/linux/address_types.h
|
| @@ -12,23 +12,21 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#include "test/hex_string.h"
|
| +#ifndef CRASHPAD_UTIL_LINUX_ADDRESS_TYPES_H_
|
| +#define CRASHPAD_UTIL_LINUX_ADDRESS_TYPES_H_
|
|
|
| -#include "base/macros.h"
|
| -#include "gtest/gtest.h"
|
| +#include <stdint.h>
|
|
|
| namespace crashpad {
|
| -namespace test {
|
| -namespace {
|
|
|
| -TEST(HexString, HexString) {
|
| - EXPECT_EQ("", BytesToHexString(nullptr, 0));
|
| +//! \brief Type used to represent an address in a process, potentially across
|
| +//! bitness.
|
| +using LinuxVMAddress = uint64_t;
|
|
|
| - const char kBytes[] = "Abc123xyz \x0a\x7f\xf0\x9f\x92\xa9_";
|
| - EXPECT_EQ("41626331323378797a200a7ff09f92a95f00",
|
| - BytesToHexString(kBytes, arraysize(kBytes)));
|
| -}
|
| +//! \brief Type used to represent the size of a memory range (with a
|
| +//! LinuxVMAddress), potentially across bitness.
|
| +using LinuxVMSize = uint64_t;
|
|
|
| -} // namespace
|
| -} // namespace test
|
| } // namespace crashpad
|
| +
|
| +#endif // CRASHPAD_UTIL_LINUX_ADDRESS_TYPES_H_
|
|
|