OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "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" |
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/test/testing_profile.h" | 14 #include "chrome/test/testing_profile.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "testing/gtest_mac.h" | 17 #include "testing/gtest_mac.h" |
18 #include "webkit/glue/plugins/plugin_list.h" | 18 #include "webkit/glue/plugins/plugin_list.h" |
19 #include "webkit/glue/plugins/webplugininfo.h" | 19 #include "webkit/glue/plugins/webplugininfo.h" |
20 | 20 |
21 namespace plugin_test_internal { | |
Bernhard Bauer
2010/12/08 13:36:30
Is that necessary for it to compile? Usually we do
Jakob Kummerow
2010/12/09 08:58:17
Done.
This was meant to be cleanup work, removed i
| |
22 | |
21 class TableModelArrayControllerTest : public CocoaTest { | 23 class TableModelArrayControllerTest : public CocoaTest { |
22 public: | 24 public: |
23 TableModelArrayControllerTest() | 25 TableModelArrayControllerTest() |
24 : command_line_(CommandLine::ForCurrentProcess(), | 26 : command_line_(CommandLine::ForCurrentProcess(), |
25 *CommandLine::ForCurrentProcess()) {} | 27 *CommandLine::ForCurrentProcess()) {} |
26 | 28 |
27 virtual void SetUp() { | 29 virtual void SetUp() { |
28 CocoaTest::SetUp(); | 30 CocoaTest::SetUp(); |
29 | 31 |
30 CommandLine::ForCurrentProcess()->AppendSwitch( | 32 CommandLine::ForCurrentProcess()->AppendSwitch( |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 [controller setSelectionIndexes:indexes]; | 164 [controller setSelectionIndexes:indexes]; |
163 [controller remove:nil]; | 165 [controller remove:nil]; |
164 titles = [[controller arrangedObjects] valueForKey:@"title"]; | 166 titles = [[controller arrangedObjects] valueForKey:@"title"]; |
165 EXPECT_NSEQ(@"(\n" | 167 EXPECT_NSEQ(@"(\n" |
166 @" BarPlugin,\n" | 168 @" BarPlugin,\n" |
167 @" \"[*.]example.com\",\n" | 169 @" \"[*.]example.com\",\n" |
168 @" \"[*.]moose.org\"\n" | 170 @" \"[*.]moose.org\"\n" |
169 @")", | 171 @")", |
170 [titles description]); | 172 [titles description]); |
171 } | 173 } |
174 | |
175 } // namespace plugin_test_internal | |
OLD | NEW |