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

Unified Diff: runtime/bin/io_natives.h

Issue 11360121: When building standalone Dart executable, put implementation of dart:io natives in a separate libra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_natives.h
diff --git a/runtime/vm/random_test.cc b/runtime/bin/io_natives.h
similarity index 50%
copy from runtime/vm/random_test.cc
copy to runtime/bin/io_natives.h
index 2b7f726a218ab971dc80002a419ef74160eda06f..17455552ff5750cc44c93cadb13c97abf7dcbd68 100644
--- a/runtime/vm/random_test.cc
+++ b/runtime/bin/io_natives.h
@@ -2,15 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include "platform/assert.h"
-#include "vm/globals.h"
-#include "vm/random.h"
-#include "vm/unit_test.h"
+#ifndef BIN_IO_NATIVES_H_
+#define BIN_IO_NATIVES_H_
-namespace dart {
+#include "include/dart_api.h"
-TEST_CASE(Random) {
- EXPECT(Random::RandomInt32() != 0);
-}
+Dart_NativeFunction IONativeLookup(Dart_Handle name,
+ int argument_count);
-} // namespace dart
+#endif // BIN_IO_NATIVES_H_
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698