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/profile_list_desktop.h" | 5 #include "chrome/browser/profiles/profile_list_desktop.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 using base::ASCIIToUTF16; | 26 using base::ASCIIToUTF16; |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 class MockObserver : public AvatarMenuObserver { | 30 class MockObserver : public AvatarMenuObserver { |
31 public: | 31 public: |
32 MockObserver() : count_(0) {} | 32 MockObserver() : count_(0) {} |
33 virtual ~MockObserver() {} | 33 virtual ~MockObserver() {} |
34 | 34 |
35 virtual void OnAvatarMenuChanged( | 35 virtual void OnAvatarMenuChanged( |
36 AvatarMenu* avatar_menu) OVERRIDE { | 36 AvatarMenu* avatar_menu) override { |
37 ++count_; | 37 ++count_; |
38 } | 38 } |
39 | 39 |
40 int change_count() const { return count_; } | 40 int change_count() const { return count_; } |
41 | 41 |
42 private: | 42 private: |
43 int count_; | 43 int count_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(MockObserver); | 45 DISALLOW_COPY_AND_ASSIGN(MockObserver); |
46 }; | 46 }; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 base::string16 supervised_user_label = | 355 base::string16 supervised_user_label = |
356 l10n_util::GetStringUTF16(IDS_SUPERVISED_USER_AVATAR_LABEL); | 356 l10n_util::GetStringUTF16(IDS_SUPERVISED_USER_AVATAR_LABEL); |
357 const AvatarMenu::Item& item1 = model->GetItemAt(0); | 357 const AvatarMenu::Item& item1 = model->GetItemAt(0); |
358 EXPECT_NE(item1.sync_state, supervised_user_label); | 358 EXPECT_NE(item1.sync_state, supervised_user_label); |
359 | 359 |
360 const AvatarMenu::Item& item2 = model->GetItemAt(1); | 360 const AvatarMenu::Item& item2 = model->GetItemAt(1); |
361 EXPECT_EQ(item2.sync_state, supervised_user_label); | 361 EXPECT_EQ(item2.sync_state, supervised_user_label); |
362 } | 362 } |
363 | 363 |
364 } // namespace | 364 } // namespace |
OLD | NEW |