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

Side by Side Diff: runtime/vm/object_test.cc

Issue 9693062: Fix unused var warning. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/assert.h" 5 #include "platform/assert.h"
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 EXPECT(!str16.IsFourByteString()); 598 EXPECT(!str16.IsFourByteString());
599 EXPECT_EQ(0x0000, str16.CharAt(0)); 599 EXPECT_EQ(0x0000, str16.CharAt(0));
600 EXPECT_EQ(0x7FFF, str16.CharAt(1)); 600 EXPECT_EQ(0x7FFF, str16.CharAt(1));
601 EXPECT_EQ(0xFFFF, str16.CharAt(2)); 601 EXPECT_EQ(0xFFFF, str16.CharAt(2));
602 } 602 }
603 } 603 }
604 604
605 605
606 TEST_CASE(StringFormat) { 606 TEST_CASE(StringFormat) {
607 const char* hello_str = "Hello World!"; 607 const char* hello_str = "Hello World!";
608 int32_t hello_len = strlen(hello_str);
609 const String& str = 608 const String& str =
610 String::Handle(String::NewFormatted("Hello %s!", "World")); 609 String::Handle(String::NewFormatted("Hello %s!", "World"));
611 EXPECT(str.IsInstance()); 610 EXPECT(str.IsInstance());
612 EXPECT(str.IsString()); 611 EXPECT(str.IsString());
613 EXPECT(str.IsOneByteString()); 612 EXPECT(str.IsOneByteString());
614 EXPECT(!str.IsTwoByteString()); 613 EXPECT(!str.IsTwoByteString());
615 EXPECT(!str.IsFourByteString()); 614 EXPECT(!str.IsFourByteString());
616 EXPECT(!str.IsNumber()); 615 EXPECT(!str.IsNumber());
617 EXPECT(str.Equals(hello_str)); 616 EXPECT(str.Equals(hello_str));
618 } 617 }
(...skipping 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 EXPECT_EQ(2, test_classes.length()); 2799 EXPECT_EQ(2, test_classes.length());
2801 EXPECT_EQ(smi_class.raw(), test_classes[0]->raw()); 2800 EXPECT_EQ(smi_class.raw(), test_classes[0]->raw());
2802 EXPECT_EQ(smi_class.raw(), test_classes[1]->raw()); 2801 EXPECT_EQ(smi_class.raw(), test_classes[1]->raw());
2803 EXPECT_EQ(target1.raw(), test_target.raw()); 2802 EXPECT_EQ(target1.raw(), test_target.raw());
2804 } 2803 }
2805 2804
2806 2805
2807 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 2806 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
2808 2807
2809 } // namespace dart 2808 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698