OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/json/json_file_value_serializer.h" | 6 #include "base/json/json_file_value_serializer.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/path_service.h" | |
9 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
10 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
11 #include "base/values.h" | 10 #include "base/values.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/extension_service_test_base.h" | 13 #include "chrome/browser/extensions/extension_service_test_base.h" |
15 #include "chrome/browser/extensions/permissions_updater.h" | 14 #include "chrome/browser/extensions/permissions_updater.h" |
16 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
17 #include "chrome/common/extensions/extension_test_util.h" | 16 #include "chrome/common/extensions/extension_test_util.h" |
18 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 EXPECT_TRUE(SetsAreEqual( | 393 EXPECT_TRUE(SetsAreEqual( |
395 permissions_data->active_permissions()->explicit_hosts().patterns(), | 394 permissions_data->active_permissions()->explicit_hosts().patterns(), |
396 all_patterns)); | 395 all_patterns)); |
397 EXPECT_TRUE(permissions_data->withheld_permissions() | 396 EXPECT_TRUE(permissions_data->withheld_permissions() |
398 ->explicit_hosts() | 397 ->explicit_hosts() |
399 .patterns() | 398 .patterns() |
400 .empty()); | 399 .empty()); |
401 } | 400 } |
402 | 401 |
403 } // namespace extensions | 402 } // namespace extensions |
OLD | NEW |