mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-23 15:37:51 +01:00
Windows: Fix x64 compile error.
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1477 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
57f026bb79
commit
214d8956ea
@ -242,7 +242,9 @@ class TypeExpectations {
|
||||
: browser_side_(browser_side),
|
||||
navigation_(navigation) {
|
||||
// Build the map of relevant requests.
|
||||
for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) {
|
||||
for (int i = 0;
|
||||
i < static_cast<int>(sizeof(g_type_expected) / sizeof(TypeExpected));
|
||||
++i) {
|
||||
if (g_type_expected[i].browser_side != browser_side_ ||
|
||||
(navigation_ && g_type_expected[i].navigation != navigation_))
|
||||
continue;
|
||||
@ -287,7 +289,9 @@ class TypeExpectations {
|
||||
|
||||
// Test if all expectations have been met.
|
||||
bool IsDone(bool assert) {
|
||||
for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) {
|
||||
for (int i = 0;
|
||||
i < static_cast<int>(sizeof(g_type_expected) / sizeof(TypeExpected));
|
||||
++i) {
|
||||
if (g_type_expected[i].browser_side != browser_side_ ||
|
||||
(navigation_ && g_type_expected[i].navigation != navigation_))
|
||||
continue;
|
||||
@ -314,7 +318,9 @@ class TypeExpectations {
|
||||
int GetExpectedIndex(const std::string& file,
|
||||
cef_transition_type_t transition_type,
|
||||
cef_resource_type_t resource_type) {
|
||||
for (size_t i = 0; i < sizeof(g_type_expected) / sizeof(TypeExpected); ++i) {
|
||||
for (int i = 0;
|
||||
i < static_cast<int>(sizeof(g_type_expected) / sizeof(TypeExpected));
|
||||
++i) {
|
||||
if (g_type_expected[i].file == file &&
|
||||
g_type_expected[i].browser_side == browser_side_ &&
|
||||
(!navigation_ || g_type_expected[i].navigation == navigation_) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user