OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include <set> | 7 #include <set> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
12 #include "chrome/common/extensions/permissions/chrome_permission_message_rules.h
" | 14 #include "chrome/common/extensions/permissions/chrome_permission_message_rules.h
" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 | 16 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 for (size_t j = 0; j < i; j++) { | 55 for (size_t j = 0; j < i; j++) { |
54 EXPECT_FALSE(MakesRedundant(rules[j], rules[i])) | 56 EXPECT_FALSE(MakesRedundant(rules[j], rules[i])) |
55 << "Rule at index " << i << " " << RuleToString(rules[i]) | 57 << "Rule at index " << i << " " << RuleToString(rules[i]) |
56 << " is redundant because of previous rule at index " << j << " " | 58 << " is redundant because of previous rule at index " << j << " " |
57 << RuleToString(rules[j]); | 59 << RuleToString(rules[j]); |
58 } | 60 } |
59 } | 61 } |
60 } | 62 } |
61 | 63 |
62 } // namespace extensions | 64 } // namespace extensions |
OLD | NEW |