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

Unified Diff: components/html_viewer/ax_provider_impl_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 | « components/html_viewer/ax_provider_impl.h ('k') | components/html_viewer/blink_basic_type_converters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/ax_provider_impl_unittest.cc
diff --git a/components/html_viewer/ax_provider_impl_unittest.cc b/components/html_viewer/ax_provider_impl_unittest.cc
index ebad0b445ed1135fb5bdf374448fc6c3e1e035ed..5dca7457077cdd4599cfde32a3eca7f86145dafa 100644
--- a/components/html_viewer/ax_provider_impl_unittest.cc
+++ b/components/html_viewer/ax_provider_impl_unittest.cc
@@ -4,6 +4,9 @@
#include "components/html_viewer/ax_provider_impl.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "components/html_viewer/blink_platform_impl.h"
@@ -121,7 +124,7 @@ TEST_F(AxProviderImplTest, Basic) {
ax_provider_impl.GetTree(
base::Bind(&NodeCatcher::OnNodes, base::Unretained(&catcher)));
- std::map<uint32, AxNode*> lookup;
+ std::map<uint32_t, AxNode*> lookup;
for (size_t i = 0; i < catcher.nodes.size(); ++i) {
auto& node = catcher.nodes[i];
lookup[node->id] = node.get();
@@ -164,7 +167,7 @@ TEST_F(AxProviderImplTest, Basic) {
"http://monkey.net/",
"")->Equals(*link));
- auto is_descendant_of = [&lookup](uint32 id, uint32 ancestor) {
+ auto is_descendant_of = [&lookup](uint32_t id, uint32_t ancestor) {
for (; (id = lookup[id]->parent_id) != 0;) {
if (id == ancestor)
return true;
« no previous file with comments | « components/html_viewer/ax_provider_impl.h ('k') | components/html_viewer/blink_basic_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698