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

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

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Same as the previous CL, but with an addition to cctest/test-log.cc Created 6 years, 11 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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-time.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 : LoopingThread(isolate) { } 196 : LoopingThread(isolate) { }
197 void RunLoop() { 197 void RunLoop() {
198 v8::Locker locker; 198 v8::Locker locker;
199 v8::Unlocker unlocker; 199 v8::Unlocker unlocker;
200 // Now thread has V8's id, but will not run VM code. 200 // Now thread has V8's id, but will not run VM code.
201 CHECK(CcTest::i_isolate() != NULL); 201 CHECK(CcTest::i_isolate() != NULL);
202 CHECK_GT(CcTest::i_isolate()->thread_manager()->CurrentId(), 0); 202 CHECK_GT(CcTest::i_isolate()->thread_manager()->CurrentId(), 0);
203 double i = 10; 203 double i = 10;
204 SignalRunning(); 204 SignalRunning();
205 while (IsRunning()) { 205 while (IsRunning()) {
206 i = sin(i); 206 i = std::sin(i);
207 i::OS::Sleep(1); 207 i::OS::Sleep(1);
208 } 208 }
209 } 209 }
210 }; 210 };
211 211
212 212
213 class TestSampler : public v8::internal::Sampler { 213 class TestSampler : public v8::internal::Sampler {
214 public: 214 public:
215 explicit TestSampler(v8::internal::Isolate* isolate) 215 explicit TestSampler(v8::internal::Isolate* isolate)
216 : Sampler(isolate, 0, true, true), 216 : Sampler(isolate, 0, true, true),
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 v8::Local<v8::String> s = result->ToString(); 483 v8::Local<v8::String> s = result->ToString();
484 i::ScopedVector<char> data(s->Utf8Length() + 1); 484 i::ScopedVector<char> data(s->Utf8Length() + 1);
485 CHECK_NE(NULL, data.start()); 485 CHECK_NE(NULL, data.start());
486 s->WriteUtf8(data.start()); 486 s->WriteUtf8(data.start());
487 printf("%s\n", data.start()); 487 printf("%s\n", data.start());
488 // Make sure that our output is written prior crash due to CHECK failure. 488 // Make sure that our output is written prior crash due to CHECK failure.
489 fflush(stdout); 489 fflush(stdout);
490 CHECK(false); 490 CHECK(false);
491 } 491 }
492 } 492 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698