OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "ui/app_list/cocoa/apps_search_results_controller.h" | 5 #import "ui/app_list/cocoa/apps_search_results_controller.h" |
6 | 6 |
7 #include "base/memory/scoped_nsobject.h" | 7 #include "base/memory/scoped_nsobject.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #import "testing/gtest_mac.h" | 11 #import "testing/gtest_mac.h" |
12 #include "ui/app_list/search_result.h" | 12 #include "ui/app_list/search_result.h" |
13 #include "ui/app_list/test/app_list_test_model.h" | 13 #include "ui/app_list/test/app_list_test_model.h" |
14 #import "ui/base/test/ui_cocoa_test_helper.h" | 14 #import "ui/base/test/ui_cocoa_test_helper.h" |
15 #include "ui/gfx/image/image_skia_util_mac.h" | 15 #include "ui/gfx/image/image_skia_util_mac.h" |
16 | 16 |
17 @interface TestAppsSearchResultsDelegate : NSObject<AppsSearchResultsDelegate> { | 17 @interface TestAppsSearchResultsDelegate : NSObject<AppsSearchResultsDelegate> { |
18 @private | 18 @private |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Test activating items. | 219 // Test activating items. |
220 EXPECT_TRUE(SimulateKeyAction(@selector(insertNewline:))); | 220 EXPECT_TRUE(SimulateKeyAction(@selector(insertNewline:))); |
221 EXPECT_EQ(ModelResultAt(0), [delegate_ lastOpenedResult]); | 221 EXPECT_EQ(ModelResultAt(0), [delegate_ lastOpenedResult]); |
222 EXPECT_TRUE(SimulateKeyAction(@selector(moveDown:))); | 222 EXPECT_TRUE(SimulateKeyAction(@selector(moveDown:))); |
223 EXPECT_TRUE(SimulateKeyAction(@selector(insertNewline:))); | 223 EXPECT_TRUE(SimulateKeyAction(@selector(insertNewline:))); |
224 EXPECT_EQ(ModelResultAt(1), [delegate_ lastOpenedResult]); | 224 EXPECT_EQ(ModelResultAt(1), [delegate_ lastOpenedResult]); |
225 } | 225 } |
226 | 226 |
227 } // namespace test | 227 } // namespace test |
228 } // namespace app_list | 228 } // namespace app_list |
OLD | NEW |