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/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/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
31 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" | 31 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" |
32 #include "chrome/browser/chromeos/settings/cros_settings.h" | 32 #include "chrome/browser/chromeos/settings/cros_settings.h" |
33 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 33 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
34 #endif | 34 #endif |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 const char kExtensionId[] = "abc"; | 38 const char kExtensionId[] = "abc"; |
39 | 39 |
40 const char* kUrlApiCalls[] = { | 40 const char* const kUrlApiCalls[] = { |
41 "HTMLButtonElement.formAction", "HTMLEmbedElement.src", | 41 "HTMLButtonElement.formAction", "HTMLEmbedElement.src", |
42 "HTMLFormElement.action", "HTMLFrameElement.src", | 42 "HTMLFormElement.action", "HTMLFrameElement.src", |
43 "HTMLHtmlElement.manifest", "HTMLIFrameElement.src", | 43 "HTMLHtmlElement.manifest", "HTMLIFrameElement.src", |
44 "HTMLImageElement.longDesc", "HTMLImageElement.src", | 44 "HTMLImageElement.longDesc", "HTMLImageElement.src", |
45 "HTMLImageElement.lowsrc", "HTMLInputElement.formAction", | 45 "HTMLImageElement.lowsrc", "HTMLInputElement.formAction", |
46 "HTMLInputElement.src", "HTMLLinkElement.href", | 46 "HTMLInputElement.src", "HTMLLinkElement.href", |
47 "HTMLMediaElement.src", "HTMLMediaElement.currentSrc", | 47 "HTMLMediaElement.src", "HTMLMediaElement.currentSrc", |
48 "HTMLModElement.cite", "HTMLObjectElement.data", | 48 "HTMLModElement.cite", "HTMLObjectElement.data", |
49 "HTMLQuoteElement.cite", "HTMLScriptElement.src", | 49 "HTMLQuoteElement.cite", "HTMLScriptElement.src", |
50 "HTMLSourceElement.src", "HTMLTrackElement.src", | 50 "HTMLSourceElement.src", "HTMLTrackElement.src", |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 kExtensionId, | 404 kExtensionId, |
405 Action::ACTION_ANY, | 405 Action::ACTION_ANY, |
406 "", | 406 "", |
407 "", | 407 "", |
408 "", | 408 "", |
409 -1, | 409 -1, |
410 base::Bind(ActivityLogTest::RetrieveActions_ArgUrlApiCalls)); | 410 base::Bind(ActivityLogTest::RetrieveActions_ArgUrlApiCalls)); |
411 } | 411 } |
412 | 412 |
413 } // namespace extensions | 413 } // namespace extensions |
OLD | NEW |