| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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/user_manager.h" | 27 #include "chrome/browser/chromeos/login/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; |
| 33 |
| 32 namespace extensions { | 34 namespace extensions { |
| 33 | 35 |
| 34 class FullStreamUIPolicyTest : public testing::Test { | 36 class FullStreamUIPolicyTest : public testing::Test { |
| 35 public: | 37 public: |
| 36 FullStreamUIPolicyTest() | 38 FullStreamUIPolicyTest() |
| 37 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), | 39 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), |
| 38 saved_cmdline_(CommandLine::NO_PROGRAM) { | 40 saved_cmdline_(CommandLine::NO_PROGRAM) { |
| 39 #if defined OS_CHROMEOS | 41 #if defined OS_CHROMEOS |
| 40 test_user_manager_.reset(new chromeos::ScopedTestUserManager()); | 42 test_user_manager_.reset(new chromeos::ScopedTestUserManager()); |
| 41 #endif | 43 #endif |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 "", | 783 "", |
| 782 "", | 784 "", |
| 783 -1, | 785 -1, |
| 784 base::Bind( | 786 base::Bind( |
| 785 &FullStreamUIPolicyTest::RetrieveActions_FetchFilteredActions0)); | 787 &FullStreamUIPolicyTest::RetrieveActions_FetchFilteredActions0)); |
| 786 | 788 |
| 787 policy->Close(); | 789 policy->Close(); |
| 788 } | 790 } |
| 789 | 791 |
| 790 } // namespace extensions | 792 } // namespace extensions |
| OLD | NEW |