OLD | NEW |
1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 ::GetProcAddress(asan_rtl_, "asan_EnumExperiments")); | 653 ::GetProcAddress(asan_rtl_, "asan_EnumExperiments")); |
654 ASSERT_TRUE(enum_experiments_fn != nullptr); | 654 ASSERT_TRUE(enum_experiments_fn != nullptr); |
655 | 655 |
656 ExperimentMap experiments; | 656 ExperimentMap experiments; |
657 experiment_map = &experiments; | 657 experiment_map = &experiments; |
658 enum_experiments_fn(ExperimentCallback); | 658 enum_experiments_fn(ExperimentCallback); |
659 experiment_map = nullptr; | 659 experiment_map = nullptr; |
660 | 660 |
661 EXPECT_EQ("Enabled", experiments["SyzyASANPageProtections"]); | 661 EXPECT_EQ("Enabled", experiments["SyzyASANPageProtections"]); |
662 EXPECT_EQ("Enabled", experiments["SyzyASANLargeBlockHeap"]); | 662 EXPECT_EQ("Enabled", experiments["SyzyASANLargeBlockHeap"]); |
| 663 EXPECT_EQ("Disabled", experiments["SyzyASANCrashpad"]); |
663 | 664 |
664 // This implicitly asserts the full contents of the map by asserting | 665 // This implicitly asserts the full contents of the map by asserting |
665 // on the size after looking up the expected keys. | 666 // on the size after looking up the expected keys. |
666 EXPECT_EQ(2U, experiments.size()); | 667 EXPECT_EQ(3U, experiments.size()); |
667 } | 668 } |
668 | 669 |
669 } // namespace asan | 670 } // namespace asan |
670 } // namespace agent | 671 } // namespace agent |
OLD | NEW |