OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/mac/scoped_nsautorelease_pool.h" | 5 #include "base/mac/scoped_nsautorelease_pool.h" |
6 #include "base/scoped_nsobject.h" | 6 #include "base/scoped_nsobject.h" |
7 #include "chrome/browser/search_engines/template_url.h" | 7 #include "chrome/browser/search_engines/template_url.h" |
8 #include "chrome/browser/search_engines/template_url_model.h" | 8 #include "chrome/browser/search_engines/template_url_model.h" |
9 #include "chrome/browser/ui/browser.h" | |
10 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 9 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
11 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
12 #import "chrome/browser/ui/cocoa/keyword_editor_cocoa_controller.h" | 11 #import "chrome/browser/ui/cocoa/keyword_editor_cocoa_controller.h" |
13 #include "chrome/test/testing_profile.h" | 12 #include "chrome/test/testing_profile.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
16 | 15 |
17 @interface FakeKeywordEditorController : KeywordEditorCocoaController { | 16 @interface FakeKeywordEditorController : KeywordEditorCocoaController { |
18 @public | 17 @public |
19 BOOL modelChanged_; | 18 BOOL modelChanged_; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 ASSERT_TRUE([controller_ tableView:table isGroupRow:0]); | 217 ASSERT_TRUE([controller_ tableView:table isGroupRow:0]); |
219 ASSERT_FALSE([controller_ tableView:table isGroupRow:1]); | 218 ASSERT_FALSE([controller_ tableView:table isGroupRow:1]); |
220 ASSERT_FALSE([controller_ tableView:table isGroupRow:2]); | 219 ASSERT_FALSE([controller_ tableView:table isGroupRow:2]); |
221 | 220 |
222 ASSERT_FALSE([controller_ tableView:table shouldSelectRow:0]); | 221 ASSERT_FALSE([controller_ tableView:table shouldSelectRow:0]); |
223 ASSERT_TRUE([controller_ tableView:table shouldSelectRow:1]); | 222 ASSERT_TRUE([controller_ tableView:table shouldSelectRow:1]); |
224 ASSERT_TRUE([controller_ tableView:table shouldSelectRow:2]); | 223 ASSERT_TRUE([controller_ tableView:table shouldSelectRow:2]); |
225 } | 224 } |
226 | 225 |
227 } // namespace | 226 } // namespace |
OLD | NEW |