OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string16.h" | 7 #include "base/string16.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/profiles/avatar_menu_model_observer.h" | 9 #include "chrome/browser/profiles/avatar_menu_model_observer.h" |
10 #include "chrome/browser/profiles/profile_info_interface.h" | 10 #include "chrome/browser/profiles/profile_info_interface.h" |
11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
12 #include "chrome/test/testing_browser_process_test.h" | 12 #include "chrome/test/base/testing_browser_process_test.h" |
13 #include "content/common/notification_service.h" | 13 #include "content/common/notification_service.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 class FakeProfileInfo : public ProfileInfoInterface { | 20 class FakeProfileInfo : public ProfileInfoInterface { |
21 public: | 21 public: |
22 FakeProfileInfo() {} | 22 FakeProfileInfo() {} |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const AvatarMenuModel::Item& item2 = model.GetItemAt(1); | 151 const AvatarMenuModel::Item& item2 = model.GetItemAt(1); |
152 EXPECT_EQ(1U, item2.model_index); | 152 EXPECT_EQ(1U, item2.model_index); |
153 EXPECT_EQ(ASCIIToUTF16("Test 3"), item2.name); | 153 EXPECT_EQ(ASCIIToUTF16("Test 3"), item2.name); |
154 | 154 |
155 const AvatarMenuModel::Item& item3 = model.GetItemAt(2); | 155 const AvatarMenuModel::Item& item3 = model.GetItemAt(2); |
156 EXPECT_EQ(2U, item3.model_index); | 156 EXPECT_EQ(2U, item3.model_index); |
157 EXPECT_EQ(ASCIIToUTF16("Test 2"), item3.name); | 157 EXPECT_EQ(ASCIIToUTF16("Test 2"), item3.name); |
158 } | 158 } |
159 | 159 |
160 } // namespace | 160 } // namespace |
OLD | NEW |