Commit 366032e4 authored by Colin Blundell's avatar Colin Blundell Committed by Commit Bot

AccountTracker: Fix unittest to match its name

While preparing a refactoring of AccountTracker, I noticed that this
unittest is not doing what its name says it's doing; rather, it's just
a copy of the unittest above it. This CL changes the test to match
the name (as best as I could infer the intent of the test from the
name).

Change-Id: I46d809c1fa9d786688ddca82641f3df4d96c5821
Reviewed-on: https://chromium-review.googlesource.com/1142776
Commit-Queue: Peter Beverloo <peter@chromium.org>
Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577157}
parent 946179d7
......@@ -433,10 +433,11 @@ TEST_F(AccountTrackerTest, PrimaryTokenAvailableAndRevokedThenLogin) {
NotifyTokenAvailable(kPrimaryAccountKey);
EXPECT_TRUE(observer()->CheckEvents());
NotifyTokenRevoked(kPrimaryAccountKey);
EXPECT_TRUE(observer()->CheckEvents());
NotifyLogin(kPrimaryAccountKey);
ReturnOAuthUrlFetchSuccess(kPrimaryAccountKey);
EXPECT_TRUE(
observer()->CheckEvents(TrackingEvent(SIGN_IN, kPrimaryAccountKey)));
EXPECT_TRUE(observer()->CheckEvents());
}
#endif
......
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