]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Fix tests and compilation errors
authorCheng Zhao <zcbenz@gmail.com>
Wed, 18 Mar 2015 04:55:44 +0000 (12:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 18 Mar 2015 05:58:33 +0000 (13:58 +0800)
atom/common/platform_util_win.cc
chromium_src/chrome/browser/printing/print_view_manager_base.cc
script/lib/config.py
spec/chromium-spec.coffee
spec/package.json
vendor/brightray

index 167190a6ca9394ebb6c99517e9de52b600753b57..19ecf45d94297b9472a7c22bbe3adb3c5b2bbcdc 100644 (file)
@@ -29,8 +29,8 @@ 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) +
-                               L"\\shell\\open\\command";
+  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())
     return false;
index af55132bd6b68f65ac4b4767650b396c7e637564..3aec7a14d546c56cf14b6e21c4584f548d8310c2 100644 (file)
@@ -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
 }
index 8b27d6761ec1ef1d7a3c4b26a84d99b45860a2c0..01f849d6ca6846a04ddd408ffadb2b6f26eb782e 100644 (file)
@@ -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',
index baf6f801404e854482d5abdd191e55b4db0c9c0d..d39183576b40de37e99bb52769f4809f7378628c 100644 (file)
@@ -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,33 +10,16 @@ describe 'chromium feature', ->
     it 'does not crash', ->
       process.atomBinding('v8_util').takeHeapSnapshot()
 
-  describe 'sending request of https protocol urls', ->
+  describe 'sending request of http 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
-        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}"
+      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', ->
     it 'calls its callbacks', (done) ->
index 0f1c25c05594794290f65b9fb5780901580fddd3..aacacc2c0deb7e87e87ed8002f98be45920cc729 100644 (file)
@@ -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",
index 9c748589f549567dd65b10113c30733de6e2fb0c..eb3564c4f7a7867bfa151bdfd1b5c83efe55d75d 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 9c748589f549567dd65b10113c30733de6e2fb0c
+Subproject commit eb3564c4f7a7867bfa151bdfd1b5c83efe55d75d