Index: test/unittests/compiler/common-operator-unittest.cc |
diff --git a/test/unittests/compiler/common-operator-unittest.cc b/test/unittests/compiler/common-operator-unittest.cc |
index 0a55a2e2a2d4659d62fdebdf8371fc5b565f8a19..440359e3b5c6e9bfa4daef9f5390c3a27618400b 100644 |
--- a/test/unittests/compiler/common-operator-unittest.cc |
+++ b/test/unittests/compiler/common-operator-unittest.cc |
@@ -362,15 +362,26 @@ TEST_F(CommonOperatorTest, NumberConstant) { |
TEST_F(CommonOperatorTest, BeginRegion) { |
- const Operator* op = common()->BeginRegion(); |
- EXPECT_EQ(1, op->EffectInputCount()); |
- EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op)); |
- EXPECT_EQ(0, op->ControlOutputCount()); |
- EXPECT_EQ(1, op->EffectOutputCount()); |
- EXPECT_EQ(0, op->ValueOutputCount()); |
+ { |
+ const Operator* op = |
+ common()->BeginRegion(RegionObservability::kObservable); |
+ EXPECT_EQ(1, op->EffectInputCount()); |
+ EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op)); |
+ EXPECT_EQ(0, op->ControlOutputCount()); |
+ EXPECT_EQ(1, op->EffectOutputCount()); |
+ EXPECT_EQ(0, op->ValueOutputCount()); |
+ } |
+ { |
+ const Operator* op = |
+ common()->BeginRegion(RegionObservability::kNotObservable); |
+ EXPECT_EQ(1, op->EffectInputCount()); |
+ EXPECT_EQ(1, OperatorProperties::GetTotalInputCount(op)); |
+ EXPECT_EQ(0, op->ControlOutputCount()); |
+ EXPECT_EQ(1, op->EffectOutputCount()); |
+ EXPECT_EQ(0, op->ValueOutputCount()); |
+ } |
} |
- |
TEST_F(CommonOperatorTest, FinishRegion) { |
const Operator* op = common()->FinishRegion(); |
EXPECT_EQ(1, op->ValueInputCount()); |