Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
dmac
2011/01/06 06:04:05
any idea what amount of coverage you get with this
Bernhard Bauer
2011/01/08 15:41:02
The complicated parts are translating the row indi
| |
| 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 "chrome/browser/ui/cocoa/table_model_array_controller.h" | 5 #import "chrome/browser/ui/cocoa/table_model_array_controller.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/mock_plugin_exceptions_table_model.h" | 10 #include "chrome/browser/mock_plugin_exceptions_table_model.h" |
| 11 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 11 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 [controller setSelectionIndexes:indexes]; | 162 [controller setSelectionIndexes:indexes]; |
| 163 [controller remove:nil]; | 163 [controller remove:nil]; |
| 164 titles = [[controller arrangedObjects] valueForKey:@"title"]; | 164 titles = [[controller arrangedObjects] valueForKey:@"title"]; |
| 165 EXPECT_NSEQ(@"(\n" | 165 EXPECT_NSEQ(@"(\n" |
| 166 @" BarPlugin,\n" | 166 @" BarPlugin,\n" |
| 167 @" \"[*.]example.com\",\n" | 167 @" \"[*.]example.com\",\n" |
| 168 @" \"[*.]moose.org\"\n" | 168 @" \"[*.]moose.org\"\n" |
| 169 @")", | 169 @")", |
| 170 [titles description]); | 170 [titles description]); |
| 171 } | 171 } |
| 172 | |
| OLD | NEW |