Unit tests for misspelled policy names.
commitbfe7577b0faa92b2fc912b7bbfe85bd994ac7e33
authorlukasza <lukasza@chromium.org>
Thu, 5 Mar 2015 00:28:12 +0000 (4 16:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 00:28:57 +0000 (5 00:28 +0000)
treeba2f4ba4050cdd08932a11fcd8d1818485290323
parent9589b67f3b415a742c7f65ebd106e202f5a01f42
Unit tests for misspelled policy names.

This verifies that we detect and report misspelled policy names
regardless of whether "RemoteAccessHost" appears as a prefix,
suffix or a substring.  I felt adding this test is important
to "document" the behavior asked about in
https://codereview.chromium.org/966433002/diff/120001/remoting/host/policy_watcher.cc#newcode109

The new test verifies expected behavior via MockLog class moved to base/test in
crrev.com/966423003.  I feel that the benefit of documenting and automatically
verifying the expected behavior outweights the small maintenence cost of an
additional test and the slight ickyness of verifying the behavior by looking at
log output.

BUG=

Review URL: https://codereview.chromium.org/979823004

Cr-Commit-Position: refs/heads/master@{#319172}
remoting/host/policy_watcher_unittest.cc