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

Unified Diff: rlz/test/rlz_test_helpers.cc

Issue 1547683004: Switch to standard integer types in rlz/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « rlz/test/rlz_test_helpers.h ('k') | rlz/test/rlz_unittest_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/test/rlz_test_helpers.cc
diff --git a/rlz/test/rlz_test_helpers.cc b/rlz/test/rlz_test_helpers.cc
index b056a81ab8dd8b61c4d49a9d464009d6ab1dbc9a..f2b347a7b2052f25c8c871f2c7121fd921057ba0 100644
--- a/rlz/test/rlz_test_helpers.cc
+++ b/rlz/test/rlz_test_helpers.cc
@@ -6,10 +6,14 @@
#include "rlz_test_helpers.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include <vector>
#include "base/strings/string16.h"
+#include "build/build_config.h"
#include "rlz/lib/rlz_lib.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -35,7 +39,7 @@ const wchar_t kHKLMAccessProviders[] =
struct RegistryValue {
base::string16 name;
DWORD type;
- std::vector<uint8> data;
+ std::vector<uint8_t> data;
};
struct RegistryKeyData {
@@ -52,7 +56,7 @@ void ReadRegistryTree(const base::win::RegKey& src, RegistryKeyData* data) {
for (; i.Valid(); ++i) {
RegistryValue& value = *data->values.insert(data->values.end(),
RegistryValue());
- const uint8* data = reinterpret_cast<const uint8*>(i.Value());
+ const uint8_t* data = reinterpret_cast<const uint8_t*>(i.Value());
value.name.assign(i.Name());
value.type = i.Type();
value.data.assign(data, data + i.ValueSize());
« no previous file with comments | « rlz/test/rlz_test_helpers.h ('k') | rlz/test/rlz_unittest_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698