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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 10375007: Revert "Implement {Int,Uint}{8,16,32,64} and Float{32,64} typed arrays." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index a7e93871d939e63db920617b6cf69de0019cc097..d10a1fd21b67cc8abe4bac86bc45987fcb764559 100644
--- a/runtime/vm/snapshot_test.cc
+++ b/runtime/vm/snapshot_test.cc
@@ -655,10 +655,10 @@ TEST_CASE(SerializeByteArray) {
uint8_t* buffer;
SnapshotWriter writer(Snapshot::kMessage, &buffer, &zone_allocator);
const int kByteArrayLength = 256;
- Uint8Array& byte_array =
- Uint8Array::Handle(Uint8Array::New(kByteArrayLength));
+ InternalByteArray& byte_array =
+ InternalByteArray::Handle(InternalByteArray::New(kByteArrayLength));
for (int i = 0; i < kByteArrayLength; i++) {
- byte_array.SetAt(i, i);
+ byte_array.SetAt<uint8_t>(i, i);
}
writer.WriteObject(byte_array.raw());
writer.FinalizeBuffer();
@@ -693,8 +693,8 @@ TEST_CASE(SerializeEmptyByteArray) {
uint8_t* buffer;
SnapshotWriter writer(Snapshot::kMessage, &buffer, &zone_allocator);
const int kByteArrayLength = 0;
- Uint8Array& byte_array =
- Uint8Array::Handle(Uint8Array::New(kByteArrayLength));
+ InternalByteArray& byte_array =
+ InternalByteArray::Handle(InternalByteArray::New(kByteArrayLength));
writer.WriteObject(byte_array.raw());
writer.FinalizeBuffer();
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698