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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace em = enterprise_management; | 25 namespace em = enterprise_management; |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
28 | 28 |
29 class CrosSettingsTest : public testing::Test { | 29 class CrosSettingsTest : public testing::Test { |
30 protected: | 30 protected: |
31 CrosSettingsTest() | 31 CrosSettingsTest() |
32 : message_loop_(MessageLoop::TYPE_UI), | 32 : message_loop_(MessageLoop::TYPE_UI), |
33 ui_thread_(content::BrowserThread::UI, &message_loop_), | 33 ui_thread_(content::BrowserThread::UI, &message_loop_), |
34 local_state_(static_cast<TestingBrowserProcess*>(g_browser_process)), | 34 local_state_(TestingBrowserProcess::GetGlobal()), |
35 weak_factory_(this) {} | 35 weak_factory_(this) {} |
36 | 36 |
37 virtual ~CrosSettingsTest() {} | 37 virtual ~CrosSettingsTest() {} |
38 | 38 |
39 virtual void TearDown() OVERRIDE { | 39 virtual void TearDown() OVERRIDE { |
40 ASSERT_TRUE(expected_props_.empty()); | 40 ASSERT_TRUE(expected_props_.empty()); |
41 STLDeleteValues(&expected_props_); | 41 STLDeleteValues(&expected_props_); |
42 expected_props_.clear(); | 42 expected_props_.clear(); |
43 } | 43 } |
44 | 44 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "WITH.DOTS@gmail.com")); | 232 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "WITH.DOTS@gmail.com")); |
233 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "WITHDOTS")); | 233 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "WITHDOTS")); |
234 | 234 |
235 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "Upper@example.com")); | 235 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "Upper@example.com")); |
236 EXPECT_FALSE(cs->FindEmailInList(kAccountsPrefUsers, "U.pper@example.com")); | 236 EXPECT_FALSE(cs->FindEmailInList(kAccountsPrefUsers, "U.pper@example.com")); |
237 EXPECT_FALSE(cs->FindEmailInList(kAccountsPrefUsers, "Upper")); | 237 EXPECT_FALSE(cs->FindEmailInList(kAccountsPrefUsers, "Upper")); |
238 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "upper@example.com")); | 238 EXPECT_TRUE(cs->FindEmailInList(kAccountsPrefUsers, "upper@example.com")); |
239 } | 239 } |
240 | 240 |
241 } // namespace chromeos | 241 } // namespace chromeos |
OLD | NEW |