Commit 48499ded authored by Elaine Chien's avatar Elaine Chien Committed by Commit Bot

Adding unit test for ChromeBrowserMainPartsWin::RegisterApplicationRestart

Bug: 1122724
Change-Id: I5cc4574546a5ca4fed41dd8f0c50f17d70a7034b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380583Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
Commit-Queue: Elaine Chien <elainec@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802767}
parent 37c5f9dc
......@@ -87,3 +87,11 @@ TEST(ChromeBrowserMainWinTest, GetRestartCommand) {
L" --enable-sandbox-audio"
L" --restore-last-session");
}
// Test RegisterApplicationRestart to make sure there are no crashes.
TEST(ChromeBrowserMainWinTest, RegisterRestart) {
const base::CommandLine command_line = base::CommandLine::FromString(
L"chrome.exe --enable-features=Exp2 --enable-foo -- "
L"http://www.chromium.org");
ChromeBrowserMainPartsWin::RegisterApplicationRestart(command_line);
}
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