win: Fix tests and compilation errors
This commit is contained in:
parent
b43386b273
commit
57812616b9
6 changed files with 13 additions and 32 deletions
|
@ -29,8 +29,8 @@ namespace {
|
||||||
// is empty. This function tells if it is.
|
// is empty. This function tells if it is.
|
||||||
bool ValidateShellCommandForScheme(const std::string& scheme) {
|
bool ValidateShellCommandForScheme(const std::string& scheme) {
|
||||||
base::win::RegKey key;
|
base::win::RegKey key;
|
||||||
std::wstring registry_path = base::ASCIIToWide(scheme) +
|
base::string16 registry_path = base::ASCIIToUTF16(scheme) +
|
||||||
L"\\shell\\open\\command";
|
L"\\shell\\open\\command";
|
||||||
key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
|
key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
|
||||||
if (!key.Valid())
|
if (!key.Valid())
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -155,7 +155,7 @@ void PrintViewManagerBase::OnDidPrintPage(
|
||||||
reinterpret_cast<const unsigned char*>(shared_buf.memory()),
|
reinterpret_cast<const unsigned char*>(shared_buf.memory()),
|
||||||
params.data_size);
|
params.data_size);
|
||||||
|
|
||||||
document->DebugDumpData(bytes, FILE_PATH_LITERAL(".pdf"));
|
document->DebugDumpData(bytes.get(), FILE_PATH_LITERAL(".pdf"));
|
||||||
}
|
}
|
||||||
#endif // !OS_WIN
|
#endif // !OS_WIN
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import platform
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
||||||
LIBCHROMIUMCONTENT_COMMIT = '5e41ab5d654a5250014f2d751a2e118c540bdff2'
|
LIBCHROMIUMCONTENT_COMMIT = '78ddaee2158886da53d0801db572be38230fd814'
|
||||||
|
|
||||||
ARCH = {
|
ARCH = {
|
||||||
'cygwin': '32bit',
|
'cygwin': '32bit',
|
||||||
|
|
|
@ -2,7 +2,6 @@ assert = require 'assert'
|
||||||
http = require 'http'
|
http = require 'http'
|
||||||
https = require 'https'
|
https = require 'https'
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
pem = require 'pem'
|
|
||||||
|
|
||||||
describe 'chromium feature', ->
|
describe 'chromium feature', ->
|
||||||
fixtures = path.resolve __dirname, 'fixtures'
|
fixtures = path.resolve __dirname, 'fixtures'
|
||||||
|
@ -11,33 +10,16 @@ describe 'chromium feature', ->
|
||||||
it 'does not crash', ->
|
it 'does not crash', ->
|
||||||
process.atomBinding('v8_util').takeHeapSnapshot()
|
process.atomBinding('v8_util').takeHeapSnapshot()
|
||||||
|
|
||||||
describe 'sending request of https protocol urls', ->
|
describe 'sending request of http protocol urls', ->
|
||||||
it 'does not crash', (done) ->
|
it 'does not crash', (done) ->
|
||||||
@timeout 5000
|
@timeout 5000
|
||||||
options = {
|
server = http.createServer (req, res) ->
|
||||||
days: 1,
|
res.end()
|
||||||
selfSigned: true
|
server.close()
|
||||||
}
|
done()
|
||||||
pem.createCertificate options, (err, keys) ->
|
server.listen 0, '127.0.0.1', ->
|
||||||
server = https.createServer {key: keys.serviceKey, cert: keys.certificate}, (req, res) ->
|
{port} = server.address()
|
||||||
res.end('hello!')
|
$.get "http://127.0.0.1:#{port}"
|
||||||
server.close()
|
|
||||||
done()
|
|
||||||
server.listen 4300, '127.0.0.1', ->
|
|
||||||
{port} = server.address()
|
|
||||||
$.get "https://127.0.0.1:#{port}", (res) ->
|
|
||||||
assert.equal res, "hello!"
|
|
||||||
|
|
||||||
describe 'sending request of http protocol urls', ->
|
|
||||||
it 'does not crash', (done) ->
|
|
||||||
@timeout 5000
|
|
||||||
server = http.createServer (req, res) ->
|
|
||||||
res.end()
|
|
||||||
server.close()
|
|
||||||
done()
|
|
||||||
server.listen 0, '127.0.0.1', ->
|
|
||||||
{port} = server.address()
|
|
||||||
$.get "http://127.0.0.1:#{port}"
|
|
||||||
|
|
||||||
describe 'navigator.webkitGetUserMedia', ->
|
describe 'navigator.webkitGetUserMedia', ->
|
||||||
it 'calls its callbacks', (done) ->
|
it 'calls its callbacks', (done) ->
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"formidable": "1.0.16",
|
"formidable": "1.0.16",
|
||||||
"graceful-fs": "3.0.5",
|
"graceful-fs": "3.0.5",
|
||||||
"mocha": "2.1.0",
|
"mocha": "2.1.0",
|
||||||
"pem": "^1.7.1",
|
|
||||||
"q": "0.9.7",
|
"q": "0.9.7",
|
||||||
"runas": "2.x",
|
"runas": "2.x",
|
||||||
"temp": "0.8.1",
|
"temp": "0.8.1",
|
||||||
|
|
2
vendor/brightray
vendored
2
vendor/brightray
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 9c748589f549567dd65b10113c30733de6e2fb0c
|
Subproject commit eb3564c4f7a7867bfa151bdfd1b5c83efe55d75d
|
Loading…
Reference in a new issue