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

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

Issue 11027017: Move ManagedMode classes to chrome/browser/managed_mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 1 month 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) 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 "chrome/browser/managed_mode.h" 5 #include "chrome/browser/managed_mode/managed_mode.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "chrome/browser/managed_mode.h" 13 #include "chrome/browser/managed_mode/managed_mode.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/test/base/test_browser_window.h" 15 #include "chrome/test/base/test_browser_window.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "content/public/test/test_browser_thread.h" 17 #include "content/public/test/test_browser_thread.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 20
21 using ::testing::StrictMock; 21 using ::testing::StrictMock;
22 22
23 namespace { 23 namespace {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 EXPECT_TRUE(managed_mode_.UserMayModifySettings(NULL, NULL)); 238 EXPECT_TRUE(managed_mode_.UserMayModifySettings(NULL, NULL));
239 239
240 managed_mode_.SetInManagedMode(&managed_mode_profile_); 240 managed_mode_.SetInManagedMode(&managed_mode_profile_);
241 EXPECT_FALSE(managed_mode_.UserMayLoad(NULL, NULL)); 241 EXPECT_FALSE(managed_mode_.UserMayLoad(NULL, NULL));
242 EXPECT_FALSE(managed_mode_.UserMayModifySettings(NULL, NULL)); 242 EXPECT_FALSE(managed_mode_.UserMayModifySettings(NULL, NULL));
243 243
244 #ifndef NDEBUG 244 #ifndef NDEBUG
245 EXPECT_FALSE(managed_mode_.GetDebugPolicyProviderName().empty()); 245 EXPECT_FALSE(managed_mode_.GetDebugPolicyProviderName().empty());
246 #endif 246 #endif
247 } 247 }
OLDNEW
« no previous file with comments | « chrome/browser/managed_mode/managed_mode.cc ('k') | chrome/browser/managed_mode/managed_mode_url_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698