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

Side by Side Diff: runtime/bin/secure_socket_unsupported.cc

Issue 21015007: Fix sample_extension_test on 64-bit macos. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add fix for android compilation. Created 7 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/builtin.h" 5 #include "bin/builtin.h"
6 #include "bin/dartutils.h" 6 #include "bin/dartutils.h"
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 10
11 namespace dart { 11 namespace dart {
12 namespace bin { 12 namespace bin {
13 13
14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { 14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) {
15 Dart_EnterScope(); 15 Dart_EnterScope();
16 Dart_ThrowException(DartUtils::NewDartArgumentError( 16 Dart_ThrowException(DartUtils::NewDartArgumentError(
17 "Secure Sockets unsupported on this platform")); 17 "Secure Sockets unsupported on this platform"));
18 Dart_ExitScope(); 18 Dart_ExitScope();
19 } 19 }
20 20
21 21
22 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { 22 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) {
23 Dart_EnterScope(); 23 Dart_EnterScope();
24 Dart_ThrowException(DartUtils::NewDartArgumentError( 24 Dart_ThrowException(DartUtils::NewDartArgumentError(
25 "Secure Sockets unsupported on this platform")); 25 "Secure Sockets unsupported on this platform"));
26 Dart_ExitScope(); 26 Dart_ExitScope();
27 } 27 }
28 28
29 29
30 void FUNCTION_NAME(SecureSocket_AddCertificate)(Dart_NativeArguments args) {
31 Dart_EnterScope();
32 Dart_ThrowException(DartUtils::NewDartArgumentError(
33 "Secure Sockets unsupported on this platform"));
34 Dart_ExitScope();
35 }
36
37
30 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) { 38 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) {
31 Dart_EnterScope(); 39 Dart_EnterScope();
32 Dart_ThrowException(DartUtils::NewDartArgumentError( 40 Dart_ThrowException(DartUtils::NewDartArgumentError(
33 "Secure Sockets unsupported on this platform")); 41 "Secure Sockets unsupported on this platform"));
34 Dart_ExitScope(); 42 Dart_ExitScope();
35 } 43 }
36 44
37 45
38 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { 46 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) {
39 Dart_EnterScope(); 47 Dart_EnterScope();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 112
105 113
106 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { 114 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) {
107 Dart_EnterScope(); 115 Dart_EnterScope();
108 Dart_ThrowException(DartUtils::NewDartArgumentError( 116 Dart_ThrowException(DartUtils::NewDartArgumentError(
109 "Secure Sockets unsupported on this platform")); 117 "Secure Sockets unsupported on this platform"));
110 Dart_ExitScope(); 118 Dart_ExitScope();
111 } 119 }
112 } // namespace bin 120 } // namespace bin
113 } // namespace dart 121 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | samples/sample_extension/sample_extension.gyp » ('j') | samples/sample_extension/sample_extension.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698