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

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

Issue 2285223003: Fix native extension lookup (Closed)
Patch Set: Update test for error message change Created 4 years, 3 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
« no previous file with comments | « runtime/bin/utils_linux.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_MACOS) 6 #if defined(TARGET_OS_MACOS)
7 7
8 #include <errno.h> // NOLINT 8 #include <errno.h> // NOLINT
9 #include <mach/clock.h> // NOLINT 9 #include <mach/clock.h> // NOLINT
10 #include <mach/mach.h> // NOLINT 10 #include <mach/mach.h> // NOLINT
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 72
73 char* StringUtils::Utf8ToConsoleString( 73 char* StringUtils::Utf8ToConsoleString(
74 char* utf8, intptr_t len, intptr_t* result_len) { 74 char* utf8, intptr_t len, intptr_t* result_len) {
75 UNIMPLEMENTED(); 75 UNIMPLEMENTED();
76 return NULL; 76 return NULL;
77 } 77 }
78 78
79 79
80 char* StringUtils::StrNDup(const char* s, intptr_t n) {
81 return strndup(s, n);
82 }
83
84
80 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { 85 bool ShellUtils::GetUtf8Argv(int argc, char** argv) {
81 return false; 86 return false;
82 } 87 }
83 88
84 89
85 static mach_timebase_info_data_t timebase_info; 90 static mach_timebase_info_data_t timebase_info;
86 91
87 92
88 void TimerUtils::InitOnce() { 93 void TimerUtils::InitOnce() {
89 kern_return_t kr = mach_timebase_info(&timebase_info); 94 kern_return_t kr = mach_timebase_info(&timebase_info);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 ASSERT(errno == EINTR); 159 ASSERT(errno == EINTR);
155 // Copy remainder into requested and repeat. 160 // Copy remainder into requested and repeat.
156 req = rem; 161 req = rem;
157 } 162 }
158 } 163 }
159 164
160 } // namespace bin 165 } // namespace bin
161 } // namespace dart 166 } // namespace dart
162 167
163 #endif // defined(TARGET_OS_MACOS) 168 #endif // defined(TARGET_OS_MACOS)
OLDNEW
« no previous file with comments | « runtime/bin/utils_linux.cc ('k') | runtime/bin/utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698