style: made container APIs more consistent.

Change-Id: Ib4feedfc4c9fb497dfcd67e7e6a33ee03db58d7f
refs: #4337
diff --git a/tests/test-name-prefix-list.cpp b/tests/test-name-prefix-list.cpp
index eef0c18..080b259 100644
--- a/tests/test-name-prefix-list.cpp
+++ b/tests/test-name-prefix-list.cpp
@@ -39,11 +39,11 @@
   npl1.insert(a);
   npl1.insert(b);
 
-  BOOST_CHECK_EQUAL(npl1.getSize(), 2);
+  BOOST_CHECK_EQUAL(npl1.size(), 2);
 
   npl1.remove(b);
 
-  BOOST_CHECK_EQUAL(npl1.getSize(), 1);
+  BOOST_CHECK_EQUAL(npl1.size(), 1);
 }
 
 /*