OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |