Commit be369aac authored by nancylingwang's avatar nancylingwang Committed by Commit Bot

Modify the remote app test for the adaptive icon feature.

For the standard icon/adaptive icon, the icon effect kCrOsStandardIcon
is applied, so modify the test case, to use the kCrOsStandardIcon effect
for it.

BUG=1083331

Change-Id: I6bdf18aa70eb07f7df94bd3a83cd490df722c0b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2332002
Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
Reviewed-by: default avatarJit Yao Yap <jityao@google.com>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794222}
parent 76008910
......@@ -30,6 +30,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
#include "chrome/common/chrome_features.h"
#include "chromeos/constants/chromeos_switches.h"
#include "chromeos/login/auth/user_context.h"
#include "components/account_id/account_id.h"
......@@ -294,7 +295,11 @@ IN_PROC_BROWSER_TEST_F(RemoteAppsManagerBrowsertest, AddApp) {
EXPECT_FALSE(item->is_folder());
EXPECT_EQ(name, item->name());
// kShared uses size hint 64 dip.
apps::ApplyIconEffects(apps::IconEffects::kResizeAndPad, 64, &icon);
apps::IconEffects icon_effects =
base::FeatureList::IsEnabled(features::kAppServiceAdaptiveIcon)
? apps::IconEffects::kCrOsStandardIcon
: apps::IconEffects::kResizeAndPad;
apps::ApplyIconEffects(icon_effects, 64, &icon);
CheckIconsEqual(icon, item->GetIcon(ash::AppListConfigType::kShared));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment