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

Side by Side Diff: chrome/browser/chromeos/login/oauth2_browsertest.cc

Issue 93903011: Remove 'using base::string16;' from base/strings/string16.h and remove temporary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 years, 11 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
7 #include "base/synchronization/waitable_event.h" 7 #include "base/synchronization/waitable_event.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/chromeos/login/oauth2_login_manager.h" 10 #include "chrome/browser/chromeos/login/oauth2_login_manager.h"
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 fake_google_page_url_, 580 fake_google_page_url_,
581 CURRENT_TAB, ui_test_utils::BROWSER_TEST_NONE); 581 CURRENT_TAB, ui_test_utils::BROWSER_TEST_NONE);
582 582
583 // Wait until we get send merge session request. 583 // Wait until we get send merge session request.
584 WaitForMergeSessionToStart(); 584 WaitForMergeSessionToStart();
585 585
586 // Make sure the page is blocked by the throttle. 586 // Make sure the page is blocked by the throttle.
587 ASSERT_FALSE(fake_google_.was_page_sent()); 587 ASSERT_FALSE(fake_google_.was_page_sent());
588 588
589 // Check that throttle page is displayed instead. 589 // Check that throttle page is displayed instead.
590 string16 title; 590 base::string16 title;
591 ui_test_utils::GetCurrentTabTitle(browser, &title); 591 ui_test_utils::GetCurrentTabTitle(browser, &title);
592 LOG(WARNING) << "Loaded page at the start : " << title; 592 LOG(WARNING) << "Loaded page at the start : " << title;
593 // ui_test_utils::GetCurrentTabTitle(browser, &title); 593 // ui_test_utils::GetCurrentTabTitle(browser, &title);
594 // JsExpect(browser->tab_strip_model()->GetActiveWebContents(), 594 // JsExpect(browser->tab_strip_model()->GetActiveWebContents(),
595 // "document.getElementById('msg').innerText='Loading...'"); 595 // "document.getElementById('msg').innerText='Loading...'");
596 // LOG(WARNING) << "Loaded page at the start: " << title; 596 // LOG(WARNING) << "Loaded page at the start: " << title;
597 597
598 // Unblock GAIA request. 598 // Unblock GAIA request.
599 UnblockMergeSession(); 599 UnblockMergeSession();
600 600
601 // Wait for the session merge to finish. 601 // Wait for the session merge to finish.
602 WaitForMergeSessionCompletion(OAuth2LoginManager::SESSION_RESTORE_DONE); 602 WaitForMergeSessionCompletion(OAuth2LoginManager::SESSION_RESTORE_DONE);
603 603
604 // Check that real page is no longer blocked by the throttle and that the 604 // Check that real page is no longer blocked by the throttle and that the
605 // real page pops up JS dialog. 605 // real page pops up JS dialog.
606 AppModalDialog* dialog = ui_test_utils::WaitForAppModalDialog(); 606 AppModalDialog* dialog = ui_test_utils::WaitForAppModalDialog();
607 ASSERT_TRUE(dialog->IsJavaScriptModalDialog()); 607 ASSERT_TRUE(dialog->IsJavaScriptModalDialog());
608 JavaScriptAppModalDialog* js_dialog = 608 JavaScriptAppModalDialog* js_dialog =
609 static_cast<JavaScriptAppModalDialog*>(dialog); 609 static_cast<JavaScriptAppModalDialog*>(dialog);
610 js_dialog->native_dialog()->AcceptAppModalDialog(); 610 js_dialog->native_dialog()->AcceptAppModalDialog();
611 611
612 ASSERT_TRUE(fake_google_.was_page_sent()); 612 ASSERT_TRUE(fake_google_.was_page_sent());
613 613
614 ui_test_utils::GetCurrentTabTitle(browser, &title); 614 ui_test_utils::GetCurrentTabTitle(browser, &title);
615 LOG(WARNING) << "Loaded page at the end : " << title; 615 LOG(WARNING) << "Loaded page at the end : " << title;
616 } 616 }
617 617
618 } // namespace chromeos 618 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider_unittest.cc ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698