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

Side by Side Diff: chrome/browser/ui/cocoa/options/edit_search_engine_cocoa_controller_unittest.mm

Issue 6339002: [Mac] Consolidate all files relating to preferences in a subdir of c/b/ui/coc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "app/l10n_util_mac.h" 5 #include "app/l10n_util_mac.h"
6 #include "base/scoped_nsobject.h" 6 #include "base/scoped_nsobject.h"
7 #include "chrome/browser/search_engines/template_url.h" 7 #include "chrome/browser/search_engines/template_url.h"
8 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 8 #include "chrome/browser/ui/cocoa/browser_test_helper.h"
9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
10 #import "chrome/browser/ui/cocoa/edit_search_engine_cocoa_controller.h" 10 #import "chrome/browser/ui/cocoa/options/edit_search_engine_cocoa_controller.h"
11 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
12 #include "grit/generated_resources.h" 12 #include "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 16
17 @interface FakeEditSearchEngineController : EditSearchEngineCocoaController { 17 @interface FakeEditSearchEngineController : EditSearchEngineCocoaController {
18 } 18 }
19 @property (nonatomic, readonly) NSTextField* nameField; 19 @property (nonatomic, readonly) NSTextField* nameField;
20 @property (nonatomic, readonly) NSTextField* keywordField; 20 @property (nonatomic, readonly) NSTextField* keywordField;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 EXPECT_NSEQ(@"Foobar", nameString); 223 EXPECT_NSEQ(@"Foobar", nameString);
224 NSString* keywordString = [[controller keywordField] stringValue]; 224 NSString* keywordString = [[controller keywordField] stringValue];
225 EXPECT_NSEQ(@"keyword", keywordString); 225 EXPECT_NSEQ(@"keyword", keywordString);
226 NSString* urlValueString = [[controller urlField] stringValue]; 226 NSString* urlValueString = [[controller urlField] stringValue];
227 EXPECT_NSEQ(@"http://foo-bar.com", urlValueString); 227 EXPECT_NSEQ(@"http://foo-bar.com", urlValueString);
228 EXPECT_TRUE([controller validateFields]); 228 EXPECT_TRUE([controller validateFields]);
229 [controller close]; 229 [controller close];
230 } 230 }
231 231
232 } // namespace 232 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698