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

Side by Side Diff: webkit/tools/test_shell/test_shell_main_gtk.cc

Issue 10719: Add GCController support to test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/icu_util.h" 10 #include "base/icu_util.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 CommandLine::LooseValueIterator iter = 56 CommandLine::LooseValueIterator iter =
57 parsed_command_line.GetLooseValuesBegin(); 57 parsed_command_line.GetLooseValuesBegin();
58 uri = *iter; 58 uri = *iter;
59 } 59 }
60 60
61 std::wstring js_flags = 61 std::wstring js_flags =
62 parsed_command_line.GetSwitchValue(test_shell::kJavaScriptFlags); 62 parsed_command_line.GetSwitchValue(test_shell::kJavaScriptFlags);
63 // Test shell always exposes the GC. 63 // Test shell always exposes the GC.
64 CommandLine::AppendSwitch(&js_flags, L"expose-gc"); 64 CommandLine::AppendSwitch(&js_flags, L"expose-gc");
65 webkit_glue::SetJavaScriptFlags(js_flags); 65 webkit_glue::SetJavaScriptFlags(js_flags);
66 // Test shell needs GCController.
67 webkit_glue::SetShouldExposeGCController(true);
66 68
67 MessageLoopForUI main_message_loop; 69 MessageLoopForUI main_message_loop;
68 70
69 TestShell* shell; 71 TestShell* shell;
70 if (TestShell::CreateNewWindow(uri, &shell)) { 72 if (TestShell::CreateNewWindow(uri, &shell)) {
71 // TODO(port): the rest of this. :) 73 // TODO(port): the rest of this. :)
72 } 74 }
73 75
74 main_message_loop.Run(); 76 main_message_loop.Run();
75 77
76 return 0; 78 return 0;
77 } 79 }
OLDNEW
« webkit/port/bindings/v8/v8_proxy.cpp ('K') | « webkit/tools/test_shell/test_shell_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698