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/chromeos/input_method/browser_state_monitor.h" | 5 #include "chrome/browser/chromeos/input_method/browser_state_monitor.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "content/public/browser/notification_details.h" | 12 #include "content/public/browser/notification_details.h" |
13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace input_method { | 17 namespace input_method { |
18 namespace { | 18 namespace { |
19 | 19 |
20 class MockObserver { | 20 class MockObserver { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Check if the state of the |mock_observer_| as well as the |monitor| are | 164 // Check if the state of the |mock_observer_| as well as the |monitor| are |
165 // both changed. | 165 // both changed. |
166 EXPECT_EQ(2, mock_observer_.update_ui_session_count()); | 166 EXPECT_EQ(2, mock_observer_.update_ui_session_count()); |
167 EXPECT_EQ(InputMethodManager::STATE_TERMINATING, mock_observer_.ui_session()); | 167 EXPECT_EQ(InputMethodManager::STATE_TERMINATING, mock_observer_.ui_session()); |
168 EXPECT_EQ(InputMethodManager::STATE_TERMINATING, monitor_.ui_session()); | 168 EXPECT_EQ(InputMethodManager::STATE_TERMINATING, monitor_.ui_session()); |
169 } | 169 } |
170 | 170 |
171 } // namespace input_method | 171 } // namespace input_method |
172 } // namespace chromeos | 172 } // namespace chromeos |
OLD | NEW |