Fix windows 64-bit compile errors (issue #1079).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1448 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
f9bed78d56
commit
43a5dccec1
|
@ -237,7 +237,9 @@ class TypeExpectations {
|
||||||
explicit TypeExpectations(bool navigation)
|
explicit TypeExpectations(bool navigation)
|
||||||
: navigation_(navigation) {
|
: navigation_(navigation) {
|
||||||
// Build the map of relevant requests.
|
// 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 (navigation_ && g_type_expected[i].navigation != navigation_)
|
if (navigation_ && g_type_expected[i].navigation != navigation_)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -279,7 +281,9 @@ class TypeExpectations {
|
||||||
|
|
||||||
// Test if all expectations have been met.
|
// Test if all expectations have been met.
|
||||||
bool IsDone(bool assert) {
|
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 (navigation_ && g_type_expected[i].navigation != navigation_)
|
if (navigation_ && g_type_expected[i].navigation != navigation_)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -304,7 +308,9 @@ class TypeExpectations {
|
||||||
int GetExpectedIndex(const std::string& file,
|
int GetExpectedIndex(const std::string& file,
|
||||||
cef_transition_type_t transition_type,
|
cef_transition_type_t transition_type,
|
||||||
cef_resource_type_t resource_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 &&
|
if (g_type_expected[i].file == file &&
|
||||||
(!navigation_ || g_type_expected[i].navigation == navigation_) &&
|
(!navigation_ || g_type_expected[i].navigation == navigation_) &&
|
||||||
g_type_expected[i].transition_type == transition_type &&
|
g_type_expected[i].transition_type == transition_type &&
|
||||||
|
|
Loading…
Reference in New Issue