Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc

Issue 155183002: Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase3 (activity_log) Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698