- Fix incorrect result in CefBytesReader::Seek() when SEEK_END argument is specified.
- Return 0 from CefBytesReader::Seek() on success to be consistent with fseek().
- Set URLRequestStatus error code to net::ERR_ABORTED in browser_resource_loader_bridge.cc when HandleBeforeResourceLoad returns RV_HANDLED to avoid a WebKit assert.

unittests:
- Add unit testing framework.
- Add initial unit tests for request, stream and V8.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@52 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2009-10-08 01:26:56 +00:00
parent 0800cba74d
commit 144e15c966
13 changed files with 1580 additions and 16 deletions

View File

@@ -192,20 +192,21 @@ int CefBytesReader::Seek(long offset, int whence)
break;
}
offset_ += offset;
rv = offset_;
rv = 0;
break;
case SEEK_END:
if(offset > (int)datasize_) {
break;
}
offset_ = datasize_ - offset;
rv = offset_;
rv = 0;
break;
case SEEK_SET:
if(offset > (int)datasize_) {
break;
}
offset_ = offset;
rv = offset_;
rv = 0;
break;
}
Unlock();