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