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

Unified Diff: runtime/vm/object_test.cc

Issue 8585004: Support correct factory syntax in the VM as decribed in the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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/vm/object.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_test.cc
===================================================================
--- runtime/vm/object_test.cc (revision 1593)
+++ runtime/vm/object_test.cc (working copy)
@@ -168,11 +168,9 @@
Class::Handle(Class::NewInterface(interface_name, script));
EXPECT(interface.is_interface());
EXPECT(!factory_class.is_interface());
- EXPECT_EQ(Object::null(), interface.factory_type());
- const Type& factory_type =
- Type::Handle(Type::NewNonParameterizedType(factory_class));
- interface.set_factory_type(factory_type);
- EXPECT_EQ(factory_type.raw(), interface.factory_type());
+ EXPECT(!interface.HasFactoryClass());
+ interface.set_factory_class(factory_class);
+ EXPECT_EQ(factory_class.raw(), interface.FactoryClass());
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698