BIND 10 trac981, updated. e12a932eadf0b33e26979cfbf387eb6788b97cad [trac981] Rename LogicCheck to LogicOperator
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 7 11:56:25 UTC 2011
The branch, trac981 has been updated
via e12a932eadf0b33e26979cfbf387eb6788b97cad (commit)
from ea2a4f906dc3b5bae939a0348a5f82fa690bbec5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e12a932eadf0b33e26979cfbf387eb6788b97cad
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Jul 7 11:54:56 2011 +0200
[trac981] Rename LogicCheck to LogicOperator
Just for consistency with LogicOperator
-----------------------------------------------------------------------
Summary of changes:
src/lib/acl/logic_check.h | 6 +++---
src/lib/acl/tests/logic_check_test.cc | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/acl/logic_check.h b/src/lib/acl/logic_check.h
index fe16f7f..92441e8 100644
--- a/src/lib/acl/logic_check.h
+++ b/src/lib/acl/logic_check.h
@@ -206,14 +206,14 @@ private:
* This simply returns the negation of whatever returns the subexpression.
*/
template<typename Context>
-class NotCheck : public CompoundCheck<Context> {
+class NotOperator : public CompoundCheck<Context> {
public:
/**
* \brief Constructor
*
* \param expr The subexpression to be negated by this NOT.
*/
- NotCheck(const boost::shared_ptr<Check<Context> >& expr) :
+ NotOperator(const boost::shared_ptr<Check<Context> >& expr) :
expr_(expr)
{ }
/**
@@ -265,7 +265,7 @@ public:
const Loader<Context,
Action>& loader)
{
- return (boost::shared_ptr<Check<Context> >(new NotCheck<Context>(
+ return (boost::shared_ptr<Check<Context> >(new NotOperator<Context>(
loader.loadCheck(definition))));
}
/**
diff --git a/src/lib/acl/tests/logic_check_test.cc b/src/lib/acl/tests/logic_check_test.cc
index 1d1979a..1c80277 100644
--- a/src/lib/acl/tests/logic_check_test.cc
+++ b/src/lib/acl/tests/logic_check_test.cc
@@ -244,7 +244,7 @@ TEST_F(LogicCreatorTest, nested) {
}
void notTest(bool value) {
- NotCheck<Log> notOp(shared_ptr<Check<Log> >(new ConstCheck(value, 0)));
+ NotOperator<Log> notOp(shared_ptr<Check<Log> >(new ConstCheck(value, 0)));
Log log;
// It returns negated value
EXPECT_EQ(!value, notOp.matches(log));
@@ -281,9 +281,9 @@ TEST_F(LogicCreatorTest, notInvalid) {
}
TEST_F(LogicCreatorTest, notValid) {
- shared_ptr<NotCheck<Log> > notOp(load<NotCheck<Log> >("{\"NOT\":"
- " {\"logcheck\":"
- " [0, true]}}"));
+ shared_ptr<NotOperator<Log> > notOp(load<NotOperator<Log> >("{\"NOT\":"
+ " {\"logcheck\":"
+ " [0, true]}}"));
EXPECT_FALSE(notOp->matches(log_));
log_.checkFirst(1);
}
More information about the bind10-changes
mailing list