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/profiles/avatar_menu_model.h" | 5 #include "chrome/browser/profiles/avatar_menu_model.h" |
6 | 6 |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/profiles/avatar_menu_model_observer.h" | 10 #include "chrome/browser/profiles/avatar_menu_model_observer.h" |
11 #include "chrome/browser/profiles/profile_info_cache.h" | 11 #include "chrome/browser/profiles/profile_info_cache.h" |
12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
13 #include "chrome/test/base/testing_browser_process.h" | 13 #include "chrome/test/base/testing_browser_process.h" |
14 #include "chrome/test/base/testing_profile_manager.h" | 14 #include "chrome/test/base/testing_profile_manager.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 base::string16 managed_user_label = | 240 base::string16 managed_user_label = |
241 l10n_util::GetStringUTF16(IDS_MANAGED_USER_AVATAR_LABEL); | 241 l10n_util::GetStringUTF16(IDS_MANAGED_USER_AVATAR_LABEL); |
242 const AvatarMenuModel::Item& item1 = model.GetItemAt(0); | 242 const AvatarMenuModel::Item& item1 = model.GetItemAt(0); |
243 EXPECT_NE(item1.sync_state, managed_user_label); | 243 EXPECT_NE(item1.sync_state, managed_user_label); |
244 | 244 |
245 const AvatarMenuModel::Item& item2 = model.GetItemAt(1); | 245 const AvatarMenuModel::Item& item2 = model.GetItemAt(1); |
246 EXPECT_EQ(item2.sync_state, managed_user_label); | 246 EXPECT_EQ(item2.sync_state, managed_user_label); |
247 } | 247 } |
248 | 248 |
249 } // namespace | 249 } // namespace |
OLD | NEW |