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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/memory/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/task_manager/resource_provider.h" | 10 #include "chrome/browser/task_manager/resource_provider.h" |
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
12 #import "chrome/browser/ui/cocoa/task_manager_mac.h" | 12 #import "chrome/browser/ui/cocoa/task_manager_mac.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #import "testing/gtest_mac.h" | 15 #import "testing/gtest_mac.h" |
16 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
17 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
18 | 18 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 NSIndexSet* selection = [table selectedRowIndexes]; | 116 NSIndexSet* selection = [table selectedRowIndexes]; |
117 ASSERT_EQ(1u, [selection count]); | 117 ASSERT_EQ(1u, [selection count]); |
118 EXPECT_EQ(1u, [selection firstIndex]); | 118 EXPECT_EQ(1u, [selection firstIndex]); |
119 | 119 |
120 // Releases the controller, which in turn deletes |bridge|. | 120 // Releases the controller, which in turn deletes |bridge|. |
121 [controller close]; | 121 [controller close]; |
122 | 122 |
123 task_manager.RemoveResource(&resource1); | 123 task_manager.RemoveResource(&resource1); |
124 task_manager.RemoveResource(&resource2); | 124 task_manager.RemoveResource(&resource2); |
125 } | 125 } |
OLD | NEW |