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

Unified Diff: test/cctest/cctest.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.cc
diff --git a/test/cctest/cctest.cc b/test/cctest/cctest.cc
index 4aa9c7eb7126382ddc5da1e460a582ccd2e63c1f..865bc6d22a27504c42f8ec7c2ca46f9e54119238 100644
--- a/test/cctest/cctest.cc
+++ b/test/cctest/cctest.cc
@@ -27,6 +27,10 @@
#include <v8.h>
#include "cctest.h"
+
+#include "print-extension.h"
+#include "profiler-extension.h"
+#include "trace-extension.h"
#include "debug.h"
enum InitializationState {kUnset, kUnintialized, kInitialized};
@@ -141,6 +145,13 @@ int main(int argc, char* argv[]) {
CcTestArrayBufferAllocator array_buffer_allocator;
v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
+ i::PrintExtension print_extension;
+ v8::RegisterExtension(&print_extension);
+ i::ProfilerExtension profiler_extension;
+ v8::RegisterExtension(&profiler_extension);
+ i::TraceExtension trace_extension;
+ v8::RegisterExtension(&trace_extension);
+
int tests_run = 0;
bool print_run_count = true;
for (int i = 1; i < argc; i++) {
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698