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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos_unittest.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ash/common/wm_shell.h"
5 #include "ash/system/system_notifier.h" 6 #include "ash/system/system_notifier.h"
6 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
7 #include "ash/test/test_shell_delegate.h" 8 #include "ash/test/test_shell_delegate.h"
8 #include "ash/wm_shell.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" 11 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
12 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 12 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
13 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 13 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
14 #include "chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chrom eos.h" 14 #include "chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chrom eos.h"
15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" 15 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h"
16 #include "chrome/test/base/testing_browser_process.h" 16 #include "chrome/test/base/testing_browser_process.h"
17 #include "chrome/test/base/testing_profile_manager.h" 17 #include "chrome/test/base/testing_profile_manager.h"
18 #include "components/signin/core/account_id/account_id.h" 18 #include "components/signin/core/account_id/account_id.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 EXPECT_FALSE(ShouldShowNotification(notifier_id, "")); 234 EXPECT_FALSE(ShouldShowNotification(notifier_id, ""));
235 EXPECT_TRUE(ShouldShowNotification(ash_system_notifier, "")); 235 EXPECT_TRUE(ShouldShowNotification(ash_system_notifier, ""));
236 EXPECT_FALSE(ShouldShowNotification(random_system_notifier, "")); 236 EXPECT_FALSE(ShouldShowNotification(random_system_notifier, ""));
237 EXPECT_TRUE(ShouldShowNotification(notifier_id, GetDefaultUserId())); 237 EXPECT_TRUE(ShouldShowNotification(notifier_id, GetDefaultUserId()));
238 EXPECT_FALSE(ShouldShowNotification(notifier_id, "test2@example.com")); 238 EXPECT_FALSE(ShouldShowNotification(notifier_id, "test2@example.com"));
239 EXPECT_TRUE(ShouldShowNotification(random_system_notifier, 239 EXPECT_TRUE(ShouldShowNotification(random_system_notifier,
240 GetDefaultUserId())); 240 GetDefaultUserId()));
241 EXPECT_FALSE(ShouldShowNotification(random_system_notifier, 241 EXPECT_FALSE(ShouldShowNotification(random_system_notifier,
242 "test2@example.com")); 242 "test2@example.com"));
243 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698