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

Side by Side Diff: test/cctest/test-api.cc

Issue 15848003: Fix Windows build after r14770 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 2495
2496 THREADED_TEST(ArrayBuffer_ApiInternalToExternal) { 2496 THREADED_TEST(ArrayBuffer_ApiInternalToExternal) {
2497 i::FLAG_harmony_array_buffer = true; 2497 i::FLAG_harmony_array_buffer = true;
2498 i::FLAG_harmony_typed_arrays = true; 2498 i::FLAG_harmony_typed_arrays = true;
2499 2499
2500 LocalContext env; 2500 LocalContext env;
2501 v8::Isolate* isolate = env->GetIsolate(); 2501 v8::Isolate* isolate = env->GetIsolate();
2502 v8::HandleScope handle_scope(isolate); 2502 v8::HandleScope handle_scope(isolate);
2503 2503
2504 Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(1024); 2504 Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(1024);
2505 CHECK_EQ(1024, ab->ByteLength()); 2505 CHECK_EQ(1024, static_cast<int>(ab->ByteLength()));
2506 CHECK(!ab->IsExternal()); 2506 CHECK(!ab->IsExternal());
2507 HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); 2507 HEAP->CollectAllGarbage(i::Heap::kNoGCFlags);
2508 2508
2509 v8::ArrayBufferContents ab_contents; 2509 v8::ArrayBufferContents ab_contents;
2510 ab->Externalize(&ab_contents); 2510 ab->Externalize(&ab_contents);
2511 CHECK(ab->IsExternal()); 2511 CHECK(ab->IsExternal());
2512 2512
2513 CHECK_EQ(1024, static_cast<int>(ab_contents.ByteLength())); 2513 CHECK_EQ(1024, static_cast<int>(ab_contents.ByteLength()));
2514 uint8_t* data = static_cast<uint8_t*>(ab_contents.Data()); 2514 uint8_t* data = static_cast<uint8_t*>(ab_contents.Data());
2515 ASSERT(data != NULL); 2515 ASSERT(data != NULL);
(...skipping 16785 matching lines...) Expand 10 before | Expand all | Expand 10 after
19301 i::Semaphore* sem_; 19301 i::Semaphore* sem_;
19302 volatile int sem_value_; 19302 volatile int sem_value_;
19303 }; 19303 };
19304 19304
19305 19305
19306 THREADED_TEST(SemaphoreInterruption) { 19306 THREADED_TEST(SemaphoreInterruption) {
19307 ThreadInterruptTest().RunTest(); 19307 ThreadInterruptTest().RunTest();
19308 } 19308 }
19309 19309
19310 #endif // WIN32 19310 #endif // WIN32
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