| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/banners/app_banner_manager.h" | 5 #include "chrome/browser/banners/app_banner_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 250 } |
| 251 | 251 |
| 252 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, | 252 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, |
| 253 WebAppBannerCreatedIndirectMultiple) { | 253 WebAppBannerCreatedIndirectMultiple) { |
| 254 AppBannerSettingsHelper::SetEngagementWeights(1, 0.5); | 254 AppBannerSettingsHelper::SetEngagementWeights(1, 0.5); |
| 255 RunBannerTest("/banners/manifest_test_page.html", ui::PAGE_TRANSITION_LINK, 3, | 255 RunBannerTest("/banners/manifest_test_page.html", ui::PAGE_TRANSITION_LINK, 3, |
| 256 SHOWING_WEB_APP_BANNER, true); | 256 SHOWING_WEB_APP_BANNER, true); |
| 257 } | 257 } |
| 258 | 258 |
| 259 // Disabled. See http://crbug.com/660798 | 259 // Disabled. See http://crbug.com/660798 |
| 260 #if defined(OS_LINUX) || defined(OS_MACOSX) | 260 #if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) |
| 261 #define MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal \ | 261 #define MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal \ |
| 262 DISABLED_WebAppBannerCreatedIndirectMultipleLargerTotal | 262 DISABLED_WebAppBannerCreatedIndirectMultipleLargerTotal |
| 263 #else | 263 #else |
| 264 #define MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal \ | 264 #define MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal \ |
| 265 WebAppBannerCreatedIndirectMultipleLargerTotal | 265 WebAppBannerCreatedIndirectMultipleLargerTotal |
| 266 #endif | 266 #endif |
| 267 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, | 267 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, |
| 268 MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal) { | 268 MAYBE_WebAppBannerCreatedIndirectMultipleLargerTotal) { |
| 269 AppBannerSettingsHelper::SetEngagementWeights(1, 0.5); | 269 AppBannerSettingsHelper::SetEngagementWeights(1, 0.5); |
| 270 AppBannerSettingsHelper::SetTotalEngagementToTrigger(4); | 270 AppBannerSettingsHelper::SetTotalEngagementToTrigger(4); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 RunBannerTest("/banners/prompt_in_handler_test_page.html", | 403 RunBannerTest("/banners/prompt_in_handler_test_page.html", |
| 404 ui::PAGE_TRANSITION_TYPED, 1, SHOWING_WEB_APP_BANNER, true); | 404 ui::PAGE_TRANSITION_TYPED, 1, SHOWING_WEB_APP_BANNER, true); |
| 405 } | 405 } |
| 406 | 406 |
| 407 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, WebAppBannerInIFrame) { | 407 IN_PROC_BROWSER_TEST_F(AppBannerManagerBrowserTest, WebAppBannerInIFrame) { |
| 408 RunBannerTest("/banners/iframe_test_page.html", ui::PAGE_TRANSITION_TYPED, 0, | 408 RunBannerTest("/banners/iframe_test_page.html", ui::PAGE_TRANSITION_TYPED, 0, |
| 409 NO_MANIFEST, false); | 409 NO_MANIFEST, false); |
| 410 } | 410 } |
| 411 | 411 |
| 412 } // namespace banners | 412 } // namespace banners |
| OLD | NEW |