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

Unified Diff: rlz/lib/lib_values_unittest.cc

Issue 239053004: Use invalid value for GetAccessPointName for CHROME_IOS_RESERVED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding unittests Created 6 years, 8 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 | « rlz/lib/lib_values.cc ('k') | rlz/lib/rlz_lib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/lib_values_unittest.cc
diff --git a/rlz/lib/lib_values_unittest.cc b/rlz/lib/lib_values_unittest.cc
index 7e8fa83b99504a4410b1922d48c89bb36fafffe1..3fcda4fd28c75699a5e694fba8cde1d3f8ac13ce 100644
--- a/rlz/lib/lib_values_unittest.cc
+++ b/rlz/lib/lib_values_unittest.cc
@@ -32,8 +32,13 @@ TEST(LibValuesUnittest, GetAccessPointFromName) {
EXPECT_FALSE(rlz_lib::GetAccessPointFromName("T4 ", &point));
EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point);
-}
+ for (int ap = rlz_lib::NO_ACCESS_POINT + 1;
+ ap < rlz_lib::LAST_ACCESS_POINT; ++ap) {
+ rlz_lib::AccessPoint point = static_cast<rlz_lib::AccessPoint>(ap);
+ EXPECT_TRUE(GetAccessPointName(point) != NULL);
+ }
+}
TEST(LibValuesUnittest, GetEventFromName) {
rlz_lib::SetExpectedAssertion("GetEventFromName: event is NULL");
« no previous file with comments | « rlz/lib/lib_values.cc ('k') | rlz/lib/rlz_lib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698