Chromium Code Reviews| Index: runtime/vm/object_test.cc |
| diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc |
| index e793b9bb1d870e785bfc0dc36511f9b20f9af400..6cb97af7f70266e0fad1b93b74a56805f794018a 100644 |
| --- a/runtime/vm/object_test.cc |
| +++ b/runtime/vm/object_test.cc |
| @@ -21,10 +21,6 @@ namespace dart { |
| DECLARE_FLAG(bool, write_protect_code); |
| -static RawLibrary* CreateDummyLibrary(const String& library_name) { |
| - return Library::New(library_name); |
| -} |
| - |
| static RawClass* CreateDummyClass(const String& class_name, |
| const Script& script) { |
| @@ -2689,6 +2685,12 @@ VM_TEST_CASE(CheckedHandle) { |
| } |
| +#if !defined(TARGET_ARCH_DBC) |
| +static RawLibrary* CreateDummyLibrary(const String& library_name) { |
| + return Library::New(library_name); |
| +} |
| + |
| + |
| static RawFunction* CreateFunction(const char* name) { |
| const String& class_name = String::Handle(Symbols::New("ownerClass")); |
| const String& lib_name = String::Handle(Symbols::New("ownerLibrary")); |
| @@ -2964,6 +2966,7 @@ VM_TEST_CASE(PcDescriptorsLargeDeltas) { |
| EXPECT_EQ(false, iter.MoveNext()); |
| } |
| +#endif |
|
zra
2016/04/14 18:27:49
add // !defined(TARGET_ARCH_DBC)
Vyacheslav Egorov (Google)
2016/04/18 15:56:42
Done.
|
| static RawClass* CreateTestClass(const char* name) { |