win: Fix tests and compilation errors
This commit is contained in:
Родитель
b43386b273
Коммит
57812616b9
|
@ -29,7 +29,7 @@ namespace {
|
|||
// is empty. This function tells if it is.
|
||||
bool ValidateShellCommandForScheme(const std::string& scheme) {
|
||||
base::win::RegKey key;
|
||||
std::wstring registry_path = base::ASCIIToWide(scheme) +
|
||||
base::string16 registry_path = base::ASCIIToUTF16(scheme) +
|
||||
L"\\shell\\open\\command";
|
||||
key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
|
||||
if (!key.Valid())
|
||||
|
|
|
@ -155,7 +155,7 @@ void PrintViewManagerBase::OnDidPrintPage(
|
|||
reinterpret_cast<const unsigned char*>(shared_buf.memory()),
|
||||
params.data_size);
|
||||
|
||||
document->DebugDumpData(bytes, FILE_PATH_LITERAL(".pdf"));
|
||||
document->DebugDumpData(bytes.get(), FILE_PATH_LITERAL(".pdf"));
|
||||
}
|
||||
#endif // !OS_WIN
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import platform
|
|||
import sys
|
||||
|
||||
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
||||
LIBCHROMIUMCONTENT_COMMIT = '5e41ab5d654a5250014f2d751a2e118c540bdff2'
|
||||
LIBCHROMIUMCONTENT_COMMIT = '78ddaee2158886da53d0801db572be38230fd814'
|
||||
|
||||
ARCH = {
|
||||
'cygwin': '32bit',
|
||||
|
|
|
@ -2,7 +2,6 @@ assert = require 'assert'
|
|||
http = require 'http'
|
||||
https = require 'https'
|
||||
path = require 'path'
|
||||
pem = require 'pem'
|
||||
|
||||
describe 'chromium feature', ->
|
||||
fixtures = path.resolve __dirname, 'fixtures'
|
||||
|
@ -11,23 +10,6 @@ describe 'chromium feature', ->
|
|||
it 'does not crash', ->
|
||||
process.atomBinding('v8_util').takeHeapSnapshot()
|
||||
|
||||
describe 'sending request of https protocol urls', ->
|
||||
it 'does not crash', (done) ->
|
||||
@timeout 5000
|
||||
options = {
|
||||
days: 1,
|
||||
selfSigned: true
|
||||
}
|
||||
pem.createCertificate options, (err, keys) ->
|
||||
server = https.createServer {key: keys.serviceKey, cert: keys.certificate}, (req, res) ->
|
||||
res.end('hello!')
|
||||
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
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
"formidable": "1.0.16",
|
||||
"graceful-fs": "3.0.5",
|
||||
"mocha": "2.1.0",
|
||||
"pem": "^1.7.1",
|
||||
"q": "0.9.7",
|
||||
"runas": "2.x",
|
||||
"temp": "0.8.1",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9c748589f549567dd65b10113c30733de6e2fb0c
|
||||
Subproject commit eb3564c4f7a7867bfa151bdfd1b5c83efe55d75d
|
Загрузка…
Ссылка в новой задаче