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

Unified Diff: test/cctest/test-heap-profiler.cc

Issue 12413027: Mark non-isolatified profiler API as V8_DEPRECATED (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 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 | « include/v8-profiler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap-profiler.cc
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc
index a536f30b5d306ad4f1fc96b483284a0632496e62..32344420f4ae918af4ab66bb13b5ce338d691394 100644
--- a/test/cctest/test-heap-profiler.cc
+++ b/test/cctest/test-heap-profiler.cc
@@ -1663,41 +1663,6 @@ TEST(NoDebugObjectInSnapshot) {
#endif // ENABLE_DEBUGGER_SUPPORT
-TEST(PersistentHandleCount) {
- LocalContext env;
- v8::Isolate* isolate = env->GetIsolate();
- v8::HandleScope scope(isolate);
-
- // V8 also uses global handles internally, so we can't test for an absolute
- // number.
- int global_handle_count = v8::HeapProfiler::GetPersistentHandleCount();
-
- // Create some persistent handles.
- v8::Persistent<v8::String> p_AAA =
- v8::Persistent<v8::String>::New(isolate, v8_str("AAA"));
- CHECK_EQ(global_handle_count + 1,
- v8::HeapProfiler::GetPersistentHandleCount());
- v8::Persistent<v8::String> p_BBB =
- v8::Persistent<v8::String>::New(isolate, v8_str("BBB"));
- CHECK_EQ(global_handle_count + 2,
- v8::HeapProfiler::GetPersistentHandleCount());
- v8::Persistent<v8::String> p_CCC =
- v8::Persistent<v8::String>::New(isolate, v8_str("CCC"));
- CHECK_EQ(global_handle_count + 3,
- v8::HeapProfiler::GetPersistentHandleCount());
-
- // Dipose the persistent handles in a different order.
- p_AAA.Dispose(env->GetIsolate());
- CHECK_EQ(global_handle_count + 2,
- v8::HeapProfiler::GetPersistentHandleCount());
- p_CCC.Dispose(env->GetIsolate());
- CHECK_EQ(global_handle_count + 1,
- v8::HeapProfiler::GetPersistentHandleCount());
- p_BBB.Dispose(env->GetIsolate());
- CHECK_EQ(global_handle_count, v8::HeapProfiler::GetPersistentHandleCount());
-}
-
-
TEST(AllStrongGcRootsHaveNames) {
LocalContext env;
v8::HandleScope scope(env->GetIsolate());
« no previous file with comments | « include/v8-profiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698