| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/test/values_test_util.h" | 10 #include "base/test/values_test_util.h" |
| 11 #include "chrome/browser/extensions/test_extension_environment.h" | 11 #include "chrome/browser/extensions/test_extension_environment.h" |
| 12 #include "chrome/common/extensions/permissions/chrome_permission_message_provide
r.h" | 12 #include "chrome/common/extensions/permissions/chrome_permission_message_provide
r.h" |
| 13 #include "extensions/common/extension.h" |
| 13 #include "extensions/common/permissions/permissions_data.h" | 14 #include "extensions/common/permissions/permissions_data.h" |
| 14 #include "extensions/common/switches.h" | 15 #include "extensions/common/switches.h" |
| 15 #include "testing/gmock/include/gmock/gmock-matchers.h" | 16 #include "testing/gmock/include/gmock/gmock-matchers.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using testing::Contains; | 19 using testing::Contains; |
| 19 using testing::Eq; | 20 using testing::Eq; |
| 20 | 21 |
| 21 namespace extensions { | 22 namespace extensions { |
| 22 | 23 |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 // TODO(sashab): Add a test that ensures that all permissions that can generate | 1270 // TODO(sashab): Add a test that ensures that all permissions that can generate |
| 1270 // a coalesced message can also generate a message on their own (i.e. ensure | 1271 // a coalesced message can also generate a message on their own (i.e. ensure |
| 1271 // that no permissions only modify other permissions). | 1272 // that no permissions only modify other permissions). |
| 1272 | 1273 |
| 1273 // TODO(sashab): Add a test for every permission message combination that can | 1274 // TODO(sashab): Add a test for every permission message combination that can |
| 1274 // generate a message. | 1275 // generate a message. |
| 1275 | 1276 |
| 1276 // TODO(aboxhall): Add tests for the automation API permission messages. | 1277 // TODO(aboxhall): Add tests for the automation API permission messages. |
| 1277 | 1278 |
| 1278 } // namespace extensions | 1279 } // namespace extensions |
| OLD | NEW |