| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |