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

Side by Side Diff: test/cctest/cctest.h

Issue 130213009: Various extension-related cleanup and simplifications. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace 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 | Annotate | Revision Log
« no previous file with comments | « src/v8.cc ('k') | test/cctest/cctest.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static void Test##Name() 51 static void Test##Name()
52 #endif 52 #endif
53 53
54 #ifndef DISABLED_TEST 54 #ifndef DISABLED_TEST
55 #define DISABLED_TEST(Name) \ 55 #define DISABLED_TEST(Name) \
56 static void Test##Name(); \ 56 static void Test##Name(); \
57 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \ 57 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \
58 static void Test##Name() 58 static void Test##Name()
59 #endif 59 #endif
60 60
61 #define EXTENSION_LIST(V) \ 61 #define EXTENSION_LIST(V) \
62 V(GC_EXTENSION, "v8/gc") \ 62 V(GC_EXTENSION, "v8/gc") \
63 V(PRINT_EXTENSION, "v8/print") \ 63 V(PRINT_EXTENSION, "v8/print") \
64 V(TRACE_EXTENSION, "v8/trace") 64 V(PROFILER_EXTENSION, "v8/profiler") \
65 V(TRACE_EXTENSION, "v8/trace")
65 66
66 #define DEFINE_EXTENSION_ID(Name, Ident) Name##_ID, 67 #define DEFINE_EXTENSION_ID(Name, Ident) Name##_ID,
67 enum CcTestExtensionIds { 68 enum CcTestExtensionIds {
68 EXTENSION_LIST(DEFINE_EXTENSION_ID) 69 EXTENSION_LIST(DEFINE_EXTENSION_ID)
69 kMaxExtensions 70 kMaxExtensions
70 }; 71 };
71 #undef DEFINE_EXTENSION_ID 72 #undef DEFINE_EXTENSION_ID
72 73
73 typedef v8::internal::EnumSet<CcTestExtensionIds> CcTestExtensionFlags; 74 typedef v8::internal::EnumSet<CcTestExtensionIds> CcTestExtensionFlags;
74 #define DEFINE_EXTENSION_FLAG(Name, Ident) \ 75 #define DEFINE_EXTENSION_FLAG(Name, Ident) \
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects()); 367 CHECK_EQ(0, heap_profiler_->heap_object_map()->FindUntrackedObjects());
367 heap_profiler_->StopHeapObjectsTracking(); 368 heap_profiler_->StopHeapObjectsTracking();
368 } 369 }
369 370
370 private: 371 private:
371 i::HeapProfiler* heap_profiler_; 372 i::HeapProfiler* heap_profiler_;
372 }; 373 };
373 374
374 375
375 #endif // ifndef CCTEST_H_ 376 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698