| 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/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/task_manager/resource_provider.h" | 9 #include "chrome/browser/task_manager/resource_provider.h" |
| 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 11 #import "chrome/browser/ui/cocoa/task_manager_mac.h" | 11 #import "chrome/browser/ui/cocoa/task_manager_mac.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #import "testing/gtest_mac.h" | 14 #import "testing/gtest_mac.h" |
| 15 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
| 16 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class TestResource : public task_manager::Resource { | 20 class TestResource : public task_manager::Resource { |
| 21 public: | 21 public: |
| 22 TestResource(const base::string16& title, pid_t pid) | 22 TestResource(const base::string16& title, pid_t pid) |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 NSIndexSet* selection = [table selectedRowIndexes]; | 118 NSIndexSet* selection = [table selectedRowIndexes]; |
| 119 ASSERT_EQ(1u, [selection count]); | 119 ASSERT_EQ(1u, [selection count]); |
| 120 EXPECT_EQ(1u, [selection firstIndex]); | 120 EXPECT_EQ(1u, [selection firstIndex]); |
| 121 | 121 |
| 122 // Releases the controller, which in turn deletes |bridge|. | 122 // Releases the controller, which in turn deletes |bridge|. |
| 123 [controller close]; | 123 [controller close]; |
| 124 | 124 |
| 125 task_manager.RemoveResource(&resource1); | 125 task_manager.RemoveResource(&resource1); |
| 126 task_manager.RemoveResource(&resource2); | 126 task_manager.RemoveResource(&resource2); |
| 127 } | 127 } |
| OLD | NEW |