OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser.h" | |
8 #include "chrome/browser/browser_window.h" | 7 #include "chrome/browser/browser_window.h" |
9 #include "chrome/browser/gtk/view_id_util.h" | 8 #include "chrome/browser/gtk/view_id_util.h" |
10 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/test/in_process_browser_test.h" | 11 #include "chrome/test/in_process_browser_test.h" |
12 #include "chrome/test/ui_test_utils.h" | 12 #include "chrome/test/ui_test_utils.h" |
13 #include "net/test/test_server.h" | 13 #include "net/test/test_server.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const char kSimplePage[] = "404_is_enough_for_us.html"; | 17 const char kSimplePage[] = "404_is_enough_for_us.html"; |
18 | 18 |
19 void OnClicked(GtkWidget* widget, bool* clicked_bit) { | 19 void OnClicked(GtkWidget* widget, bool* clicked_bit) { |
20 *clicked_bit = true; | 20 *clicked_bit = true; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 MessageLoop::current()->RunAllPending(); | 69 MessageLoop::current()->RunAllPending(); |
70 | 70 |
71 // This is kind of a hack. Calling this just once doesn't seem to send a click | 71 // This is kind of a hack. Calling this just once doesn't seem to send a click |
72 // event, but doing it twice works. | 72 // event, but doing it twice works. |
73 // http://crbug.com/35581 | 73 // http://crbug.com/35581 |
74 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); | 74 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); |
75 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); | 75 ui_test_utils::ClickOnView(browser(), VIEW_ID_OTHER_BOOKMARKS); |
76 | 76 |
77 EXPECT_TRUE(has_been_clicked); | 77 EXPECT_TRUE(has_been_clicked); |
78 } | 78 } |
OLD | NEW |