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

Side by Side Diff: runtime/bin/utils_fuchsia.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_android.cc ('k') | runtime/bin/utils_linux.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_FUCHSIA) 6 #if defined(TARGET_OS_FUCHSIA)
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <magenta/syscalls.h> 9 #include <magenta/syscalls.h>
10 #include <magenta/types.h> 10 #include <magenta/types.h>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 63
64 char* StringUtils::Utf8ToConsoleString( 64 char* StringUtils::Utf8ToConsoleString(
65 char* utf8, intptr_t len, intptr_t* result_len) { 65 char* utf8, intptr_t len, intptr_t* result_len) {
66 UNIMPLEMENTED(); 66 UNIMPLEMENTED();
67 return NULL; 67 return NULL;
68 } 68 }
69 69
70 70
71 char* StringUtils::StrNDup(const char* s, intptr_t n) {
72 return strndup(s, n);
73 }
74
75
71 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { 76 bool ShellUtils::GetUtf8Argv(int argc, char** argv) {
72 return false; 77 return false;
73 } 78 }
74 79
75 80
76 void TimerUtils::InitOnce() { 81 void TimerUtils::InitOnce() {
77 } 82 }
78 83
79 84
80 int64_t TimerUtils::GetCurrentMonotonicMillis() { 85 int64_t TimerUtils::GetCurrentMonotonicMillis() {
81 return GetCurrentMonotonicMicros() / 1000; 86 return GetCurrentMonotonicMicros() / 1000;
82 } 87 }
83 88
84 89
85 int64_t TimerUtils::GetCurrentMonotonicMicros() { 90 int64_t TimerUtils::GetCurrentMonotonicMicros() {
86 int64_t ticks = mx_current_time(); 91 int64_t ticks = mx_current_time();
87 return ticks / kNanosecondsPerMicrosecond; 92 return ticks / kNanosecondsPerMicrosecond;
88 } 93 }
89 94
90 95
91 void TimerUtils::Sleep(int64_t millis) { 96 void TimerUtils::Sleep(int64_t millis) {
92 mx_nanosleep( 97 mx_nanosleep(
93 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond); 98 millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond);
94 } 99 }
95 100
96 } // namespace bin 101 } // namespace bin
97 } // namespace dart 102 } // namespace dart
98 103
99 #endif // defined(TARGET_OS_FUCHSIA) 104 #endif // defined(TARGET_OS_FUCHSIA)
OLDNEW
« no previous file with comments | « runtime/bin/utils_android.cc ('k') | runtime/bin/utils_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698