Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698