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

Unified Diff: chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc

Issue 2921903002: Remove handling of ClearSiteDataOnExit policy (Closed)
Patch Set: Remove unit test Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/restore_on_startup_policy_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc
diff --git a/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc b/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc
index fb3da597612f72ce8fe8b1220a3c0dd14b6e1add..eeee558b9403f6a7e4ee564e4a7fa84a77e439f0 100644
--- a/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc
+++ b/chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc
@@ -129,24 +129,6 @@ TEST_F(RestoreOnStartupPolicyHandlerTest, ApplyPolicySettings_NotHomePage) {
EXPECT_EQ(not_home_page, result);
}
-TEST_F(RestoreOnStartupPolicyHandlerTest,
- CheckPolicySettings_RestoreLastSession_ClearDataOnExit) {
- // Specify the Last value and the Clear-Data-On-Exit value.
- SetPolicyValue(
- key::kRestoreOnStartup,
- base::WrapUnique(new base::Value(SessionStartupPref::kPrefValueLast)));
- SetPolicyValue(key::kClearSiteDataOnExit,
- base::MakeUnique<base::Value>(true));
- // Checking should succeed but add an error to the error map.
- EXPECT_TRUE(CheckPolicySettings());
- ASSERT_EQ(1U, errors().size());
- EXPECT_EQ(key::kClearSiteDataOnExit, errors().begin()->first);
- EXPECT_EQ(l10n_util::GetStringFUTF16(
- IDS_POLICY_OVERRIDDEN,
- base::ASCIIToUTF16(key::kRestoreOnStartup)),
- errors().begin()->second);
-}
-
TEST_F(RestoreOnStartupPolicyHandlerTest,
CheckPolicySettings_RestoreLastSession) {
// Specify the Last value without the conflicts.
« no previous file with comments | « chrome/browser/sessions/restore_on_startup_policy_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698