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 // TODO(rickcam): Bug 73183: Add unit tests for image loading | 5 // TODO(rickcam): Bug 73183: Add unit tests for image loading |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "chrome/browser/background/background_application_list_model.h" | 10 #include "chrome/browser/background/background_application_list_model.h" |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
19 #include "chrome/browser/extensions/extension_service_unittest.h" | 19 #include "chrome/browser/extensions/extension_service_unittest.h" |
20 #include "chrome/browser/extensions/permissions_updater.h" | 20 #include "chrome/browser/extensions/permissions_updater.h" |
21 #include "chrome/common/extensions/extension.h" | 21 #include "chrome/common/extensions/extension.h" |
22 #include "chrome/common/extensions/extension_manifest_constants.h" | 22 #include "chrome/common/extensions/extension_manifest_constants.h" |
23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
25 #include "content/public/browser/notification_types.h" | 25 #include "content/public/browser/notification_types.h" |
26 #include "content/test/test_browser_thread.h" | 26 #include "content/public/test/test_browser_thread.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 // This value is used to seed the PRNG at the beginning of a sequence of | 29 // This value is used to seed the PRNG at the beginning of a sequence of |
30 // operations to produce a repeatable sequence. | 30 // operations to produce a repeatable sequence. |
31 #define RANDOM_SEED (0x33F7A7A7) | 31 #define RANDOM_SEED (0x33F7A7A7) |
32 | 32 |
33 using extensions::Extension; | 33 using extensions::Extension; |
34 | 34 |
35 // For ExtensionService interface when it requires a path that is not used. | 35 // For ExtensionService interface when it requires a path that is not used. |
36 FilePath bogus_file_path() { | 36 FilePath bogus_file_path() { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 break; | 352 break; |
353 case 2: | 353 case 2: |
354 TogglePermission(service, &extensions, model.get(), &expected, &count); | 354 TogglePermission(service, &extensions, model.get(), &expected, &count); |
355 break; | 355 break; |
356 default: | 356 default: |
357 NOTREACHED(); | 357 NOTREACHED(); |
358 break; | 358 break; |
359 } | 359 } |
360 } | 360 } |
361 } | 361 } |
OLD | NEW |