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

Side by Side Diff: ios/web/web_state/js/common_js_unittest.mm

Issue 1544743002: Switch to standard integer types in ios/. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h>
5 #import <UIKit/UIKit.h> 6 #import <UIKit/UIKit.h>
6 7
8 #include "base/macros.h"
7 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
8 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
9 #include "ios/web/public/test/web_test_util.h" 11 #include "ios/web/public/test/web_test_util.h"
10 #import "ios/web/test/web_test.h" 12 #import "ios/web/test/web_test.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 #include "testing/gtest_mac.h" 14 #include "testing/gtest_mac.h"
13 15
14 // Unit tests for ios/web/web_state/js/resources/common.js. 16 // Unit tests for ios/web/web_state/js/resources/common.js.
15 17
16 namespace { 18 namespace {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 "__gCrWeb.common.isTextField(" 92 "__gCrWeb.common.isTextField("
91 "window.document.getElementsByName('%s')[%u])", 93 "window.document.getElementsByName('%s')[%u])",
92 element.element_name, element.element_index))); 94 element.element_name, element.element_index)));
93 EXPECT_NSEQ(element.expected_is_text_field ? @"true" : @"false", result) 95 EXPECT_NSEQ(element.expected_is_text_field ? @"true" : @"false", result)
94 << element.element_name << " with index " << element.element_index 96 << element.element_name << " with index " << element.element_index
95 << " isTextField(): " << element.expected_is_text_field; 97 << " isTextField(): " << element.expected_is_text_field;
96 } 98 }
97 } 99 }
98 100
99 } // namespace 101 } // namespace
OLDNEW
« no previous file with comments | « ios/web/web_state/global_web_state_event_tracker.cc ('k') | ios/web/web_state/js/core_js_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698