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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 case content::NOTIFICATION_WEB_CONTENTS_DESTROYED: 371 case content::NOTIFICATION_WEB_CONTENTS_DESTROYED:
372 case chrome::NOTIFICATION_TAB_PARENTED: 372 case chrome::NOTIFICATION_TAB_PARENTED:
373 case chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY: 373 case chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY:
374 case chrome::NOTIFICATION_HISTORY_LOADED: 374 case chrome::NOTIFICATION_HISTORY_LOADED:
375 case chrome::NOTIFICATION_HISTORY_URLS_MODIFIED: 375 case chrome::NOTIFICATION_HISTORY_URLS_MODIFIED:
376 case chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED: 376 case chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED:
377 break; 377 break;
378 default: 378 default:
379 FAIL() << "Unexpected notification type"; 379 FAIL() << "Unexpected notification type";
380 } 380 }
381 MessageLoop::current()->Quit(); 381 base::MessageLoop::current()->Quit();
382 } 382 }
383 383
384 void BrowserAcceleratorsTest() { 384 void BrowserAcceleratorsTest() {
385 OmniboxView* omnibox_view = NULL; 385 OmniboxView* omnibox_view = NULL;
386 ASSERT_NO_FATAL_FAILURE(GetOmniboxView(&omnibox_view)); 386 ASSERT_NO_FATAL_FAILURE(GetOmniboxView(&omnibox_view));
387 387
388 int tab_count = browser()->tab_strip_model()->count(); 388 int tab_count = browser()->tab_strip_model()->count();
389 389
390 // Create a new Tab. 390 // Create a new Tab.
391 chrome::NewTab(browser()); 391 chrome::NewTab(browser());
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 ASSERT_EQ(5U, end); 1940 ASSERT_EQ(5U, end);
1941 1941
1942 ui_test_utils::ClickOnView(browser(), VIEW_ID_TAB_CONTAINER); 1942 ui_test_utils::ClickOnView(browser(), VIEW_ID_TAB_CONTAINER);
1943 ASSERT_FALSE(ui_test_utils::IsViewFocused(browser(), VIEW_ID_OMNIBOX)); 1943 ASSERT_FALSE(ui_test_utils::IsViewFocused(browser(), VIEW_ID_OMNIBOX));
1944 1944
1945 omnibox_view->GetSelectionBounds(&start, &end); 1945 omnibox_view->GetSelectionBounds(&start, &end);
1946 ASSERT_EQ(0U, start); 1946 ASSERT_EQ(0U, start);
1947 ASSERT_EQ(0U, end); 1947 ASSERT_EQ(0U, end);
1948 } 1948 }
1949 #endif // !defined(TOOLKIT_GTK) 1949 #endif // !defined(TOOLKIT_GTK)
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/action_box_browsertest.cc ('k') | chrome/browser/ui/omnibox/omnibox_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698