X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fpolicy%2Fpolicy_browsertest.cc;h=fca167eb1f0eedf502684ac64576bda250a57ba1;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=d1f49a360c72234c960166bc943620d6f1f94ff7;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/policy/policy_browsertest.cc b/src/chrome/browser/policy/policy_browsertest.cc index d1f49a3..fca167e 100644 --- a/src/chrome/browser/policy/policy_browsertest.cc +++ b/src/chrome/browser/policy/policy_browsertest.cc @@ -39,7 +39,6 @@ #include "chrome/browser/extensions/unpacked_installer.h" #include "chrome/browser/extensions/updater/extension_cache_fake.h" #include "chrome/browser/extensions/updater/extension_updater.h" -#include "chrome/browser/infobars/infobar.h" #include "chrome/browser/infobars/infobar_service.h" #include "chrome/browser/media/media_capture_devices_dispatcher.h" #include "chrome/browser/media/media_stream_devices_controller.h" @@ -81,6 +80,7 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/test_switches.h" #include "chrome/test/base/ui_test_utils.h" +#include "components/infobars/core/infobar.h" #include "components/policy/core/browser/browser_policy_connector.h" #include "components/policy/core/common/external_data_fetcher.h" #include "components/policy/core/common/mock_configuration_policy_provider.h" @@ -497,8 +497,7 @@ class WebContentsLoadedOrDestroyedWatcher void Wait(); // Overridden WebContentsObserver methods. - virtual void WebContentsDestroyed( - content::WebContents* web_contents) OVERRIDE; + virtual void WebContentsDestroyed() OVERRIDE; virtual void DidStopLoading( content::RenderViewHost* render_view_host) OVERRIDE; @@ -520,8 +519,7 @@ void WebContentsLoadedOrDestroyedWatcher::Wait() { message_loop_runner_->Run(); } -void WebContentsLoadedOrDestroyedWatcher::WebContentsDestroyed( - content::WebContents* web_contents) { +void WebContentsLoadedOrDestroyedWatcher::WebContentsDestroyed() { message_loop_runner_->Quit(); } @@ -540,8 +538,6 @@ class TestAddAppWindowObserver : public apps::AppWindowRegistry::Observer { // apps::AppWindowRegistry::Observer: virtual void OnAppWindowAdded(apps::AppWindow* app_window) OVERRIDE; - virtual void OnAppWindowIconChanged(apps::AppWindow* app_window) OVERRIDE; - virtual void OnAppWindowRemoved(apps::AppWindow* app_window) OVERRIDE; apps::AppWindow* WaitForAppWindow(); @@ -568,12 +564,6 @@ void TestAddAppWindowObserver::OnAppWindowAdded(apps::AppWindow* app_window) { run_loop_.Quit(); } -void TestAddAppWindowObserver::OnAppWindowIconChanged( - apps::AppWindow* app_window) {} - -void TestAddAppWindowObserver::OnAppWindowRemoved(apps::AppWindow* app_window) { -} - apps::AppWindow* TestAddAppWindowObserver::WaitForAppWindow() { run_loop_.Run(); return window_; @@ -691,7 +681,7 @@ class PolicyTest : public InProcessBrowserTest { scoped_refptr installer = extensions::UnpackedInstaller::Create(extension_service()); content::WindowedNotificationObserver observer( - expect_success ? chrome::NOTIFICATION_EXTENSION_LOADED + expect_success ? chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED : chrome::NOTIFICATION_EXTENSION_LOAD_ERROR, content::NotificationService::AllSources()); installer->Load(extension_path); @@ -1645,7 +1635,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionInstallForcelist) { chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED, content::NotificationService::AllSources()); content::WindowedNotificationObserver extension_loaded_observer( - chrome::NOTIFICATION_EXTENSION_LOADED, + chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED, content::NotificationService::AllSources()); extensions::ExtensionHost* extension_host = extensions::ExtensionSystem::Get(browser()->profile())-> @@ -1910,11 +1900,11 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_TranslateEnabled) { // Verify that the translate infobar showed up. ASSERT_EQ(1u, infobar_service->infobar_count()); - InfoBar* infobar = infobar_service->infobar_at(0); + infobars::InfoBar* infobar = infobar_service->infobar_at(0); TranslateInfoBarDelegate* translate_infobar_delegate = infobar->delegate()->AsTranslateInfoBarDelegate(); ASSERT_TRUE(translate_infobar_delegate); - EXPECT_EQ(TranslateTabHelper::BEFORE_TRANSLATE, + EXPECT_EQ(translate::TRANSLATE_STEP_BEFORE_TRANSLATE, translate_infobar_delegate->translate_step()); EXPECT_EQ("fr", translate_infobar_delegate->original_language_code());