OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/cancelable_callback.h" | 5 #include "base/cancelable_callback.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "base/test/simple_test_clock.h" | 11 #include "base/test/simple_test_clock.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "chrome/browser/extensions/activity_log/activity_log.h" | 13 #include "chrome/browser/extensions/activity_log/activity_log.h" |
14 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" | 14 #include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/extensions/test_extension_system.h" | 16 #include "chrome/browser/extensions/test_extension_system.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
20 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
21 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
22 #include "extensions/common/extension_builder.h" | 22 #include "extensions/common/extension_builder.h" |
23 #include "sql/statement.h" | 23 #include "sql/statement.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
27 #include "chrome/browser/chromeos/login/users/user_manager.h" | 27 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" |
28 #include "chrome/browser/chromeos/settings/cros_settings.h" | 28 #include "chrome/browser/chromeos/settings/cros_settings.h" |
29 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 29 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
30 #endif | 30 #endif |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 | 33 |
34 namespace extensions { | 34 namespace extensions { |
35 | 35 |
36 class FullStreamUIPolicyTest : public testing::Test { | 36 class FullStreamUIPolicyTest : public testing::Test { |
37 public: | 37 public: |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 action_ids.push_back(3); | 983 action_ids.push_back(3); |
984 action_ids.push_back(4); | 984 action_ids.push_back(4); |
985 CheckRemoveActions( | 985 CheckRemoveActions( |
986 policy, action_ids, base::Bind(&FullStreamUIPolicyTest::Action2Deleted)); | 986 policy, action_ids, base::Bind(&FullStreamUIPolicyTest::Action2Deleted)); |
987 action_ids.clear(); | 987 action_ids.clear(); |
988 | 988 |
989 policy->Close(); | 989 policy->Close(); |
990 } | 990 } |
991 | 991 |
992 } // namespace extensions | 992 } // namespace extensions |
OLD | NEW |