| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/content_settings/collected_cookies_mac.h" | 5 #import "chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h" | 
| 6 | 6 | 
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" | 
| 8 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 8 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 9 #import "testing/gtest_mac.h" | 9 #import "testing/gtest_mac.h" | 
| 10 | 10 | 
| 11 class CollectedCookiesMacTest : public CocoaTest { | 11 class CollectedCookiesMacTest : public CocoaTest { | 
| 12  public: | 12  public: | 
| 13   NSTreeNode* CreateTreeNodesFromDictionary(NSDictionary* dict) { | 13   NSTreeNode* CreateTreeNodesFromDictionary(NSDictionary* dict) { | 
| 14     base::scoped_nsobject<NSTreeNode> root( | 14     base::scoped_nsobject<NSTreeNode> root( | 
| 15         [[NSTreeNode alloc] initWithRepresentedObject:nil]); | 15         [[NSTreeNode alloc] initWithRepresentedObject:nil]); | 
| 16     AttachTreeNodeChildren(root, dict); | 16     AttachTreeNodeChildren(root, dict); | 
| 17     return root.autorelease(); | 17     return root.autorelease(); | 
| 18   } | 18   } | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 56   actual = | 56   actual = | 
| 57       [CollectedCookiesWindowController normalizeNodeSelection:selection]; | 57       [CollectedCookiesWindowController normalizeNodeSelection:selection]; | 
| 58   EXPECT_NSEQ(normalized, actual); | 58   EXPECT_NSEQ(normalized, actual); | 
| 59 | 59 | 
| 60   selection = @[ one, one1, one1a, one1b ]; | 60   selection = @[ one, one1, one1a, one1b ]; | 
| 61   normalized = @[ one ]; | 61   normalized = @[ one ]; | 
| 62   actual = | 62   actual = | 
| 63       [CollectedCookiesWindowController normalizeNodeSelection:selection]; | 63       [CollectedCookiesWindowController normalizeNodeSelection:selection]; | 
| 64   EXPECT_NSEQ(normalized, actual); | 64   EXPECT_NSEQ(normalized, actual); | 
| 65 } | 65 } | 
| OLD | NEW | 
|---|