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

Unified Diff: tools/json_schema_compiler/dart_test/basic_type.dart

Issue 12218151: Added unit tests for the Dart Chrome.* API wrappers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove print statement if outputting to file. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/dart_test/basic_type.dart
diff --git a/tools/json_schema_compiler/dart_test/basic_type.dart b/tools/json_schema_compiler/dart_test/basic_type.dart
new file mode 100644
index 0000000000000000000000000000000000000000..53183d09109ef80df4308cfdfa788929ed22334f
--- /dev/null
+++ b/tools/json_schema_compiler/dart_test/basic_type.dart
@@ -0,0 +1,77 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+// Generated from namespace: basic_type
+
+part of chrome;
+
+/**
+ * Types
+ */
+
+class Basic_typeBasicType extends ChromeObject {
+ /*
+ * Public constructor
+ */
+ Basic_typeBasicType({String s, int i, int l, double d}) {
+ if (?s)
+ this.s = s;
+ if (?i)
+ this.i = i;
+ if (?l)
+ this.l = l;
+ if (?d)
+ this.d = d;
+ }
+
+ /*
+ * Private constructor
+ */
+ Basic_typeBasicType._proxy(_jsObject) : super._proxy(_jsObject);
+
+ /*
+ * Public accessors
+ */
+ /// Documentation for the String s.
+ String get s => JS('String', '#.s', this._jsObject);
+
+ void set s(String s) {
+ JS('void', '#.s = #', this._jsObject, s);
+ }
+
+ /// Documentation for the int i.
+ int get i => JS('int', '#.i', this._jsObject);
+
+ void set i(int i) {
+ JS('void', '#.i = #', this._jsObject, i);
+ }
+
+ /// Documentation for the long l.
+ int get l => JS('int', '#.l', this._jsObject);
+
+ void set l(int l) {
+ JS('void', '#.l = #', this._jsObject, l);
+ }
+
+ /// Documentation for the double d.
+ double get d => JS('double', '#.d', this._jsObject);
+
+ void set d(double d) {
+ JS('void', '#.d = #', this._jsObject, d);
+ }
+
+}
+
+/**
+ * Functions
+ */
+
+class API_basic_type {
+ /*
+ * API connection
+ */
+ Object _jsObject;
+ API_basic_type(this._jsObject) {
+ }
+}
« no previous file with comments | « tools/json_schema_compiler/dart_test/basic_function.idl ('k') | tools/json_schema_compiler/dart_test/basic_type.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698