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

Side by Side Diff: chrome/browser/managed_mode/managed_user_service_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/path_service.h" 5 #include "base/path_service.h"
6 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/extensions/extension_service_unittest.h" 8 #include "chrome/browser/extensions/extension_service_unittest.h"
9 #include "chrome/browser/extensions/unpacked_installer.h" 9 #include "chrome/browser/extensions/unpacked_installer.h"
10 #include "chrome/browser/managed_mode/managed_user_service.h" 10 #include "chrome/browser/managed_mode/managed_user_service.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 57
58 class ManagedUserServiceTest : public ::testing::Test { 58 class ManagedUserServiceTest : public ::testing::Test {
59 public: 59 public:
60 ManagedUserServiceTest() : ui_thread_(content::BrowserThread::UI, 60 ManagedUserServiceTest() : ui_thread_(content::BrowserThread::UI,
61 &message_loop_), 61 &message_loop_),
62 managed_user_service_(&profile_) {} 62 managed_user_service_(&profile_) {}
63 virtual ~ManagedUserServiceTest() {} 63 virtual ~ManagedUserServiceTest() {}
64 64
65 protected: 65 protected:
66 MessageLoop message_loop_; 66 base::MessageLoop message_loop_;
67 content::TestBrowserThread ui_thread_; 67 content::TestBrowserThread ui_thread_;
68 TestingProfile profile_; 68 TestingProfile profile_;
69 ManagedUserService managed_user_service_; 69 ManagedUserService managed_user_service_;
70 }; 70 };
71 71
72 } // namespace 72 } // namespace
73 73
74 TEST_F(ManagedUserServiceTest, ExtensionManagementPolicyProviderUnmanaged) { 74 TEST_F(ManagedUserServiceTest, ExtensionManagementPolicyProviderUnmanaged) {
75 EXPECT_FALSE(managed_user_service_.ProfileIsManaged()); 75 EXPECT_FALSE(managed_user_service_.ProfileIsManaged());
76 76
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 EXPECT_EQ(ManagedModeURLFilter::WARN, 304 EXPECT_EQ(ManagedModeURLFilter::WARN,
305 url_filter->GetFilteringBehaviorForURL(example_url)); 305 url_filter->GetFilteringBehaviorForURL(example_url));
306 #if defined(ENABLE_CONFIGURATION_POLICY) 306 #if defined(ENABLE_CONFIGURATION_POLICY)
307 EXPECT_EQ(ManagedModeURLFilter::ALLOW, 307 EXPECT_EQ(ManagedModeURLFilter::ALLOW,
308 url_filter->GetFilteringBehaviorForURL(moose_url)); 308 url_filter->GetFilteringBehaviorForURL(moose_url));
309 #endif 309 #endif
310 } 310 }
311 311
312 #endif // OS_CHROMEOS 312 #endif // OS_CHROMEOS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698