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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc

Issue 98713004: NaCl: Update revision in DEPS, r12488 -> r12497 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix out-of-bounds std::map access in nacl_io testing, and correspondingly broken test. All used pa… Created 7 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 | « DEPS ('k') | native_client_sdk/src/tests/nacl_io_test/mount_http_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc b/native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc
index f0dc472be687a41e061b4a528760be1ba13f89d6..2d10c971393b1f55c97fffb0f033a33c7a2e60da 100644
--- a/native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface_url_loader.cc
@@ -231,7 +231,7 @@ FakeURLLoaderEntity* FakeURLLoaderServer::GetEntity(const std::string& url) {
int FakeURLLoaderServer::GetError(const std::string& url) {
ErrorMap::iterator iter = error_map_.find(url);
- if (iter != error_map_.end())
+ if (iter == error_map_.end())
return 0;
return iter->second;
}
« no previous file with comments | « DEPS ('k') | native_client_sdk/src/tests/nacl_io_test/mount_http_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698