Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: third_party/crashpad/crashpad/util/linux/address_types.h

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « third_party/crashpad/crashpad/util/file/string_file_test.cc ('k') | third_party/crashpad/crashpad/util/linux/process_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698