OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
8 #include "chrome/browser/importer/importer.h" | 8 #include "chrome/browser/importer/importer.h" |
9 #import "chrome/browser/ui/cocoa/browser_test_helper.h" | 9 #import "chrome/browser/ui/cocoa/browser_test_helper.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/import_settings_dialog.h" | 11 #import "chrome/browser/ui/cocoa/importer/import_settings_dialog.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
14 | 14 |
15 using importer::HISTORY; | 15 using importer::HISTORY; |
16 using importer::FAVORITES; | 16 using importer::FAVORITES; |
17 using importer::COOKIES; | 17 using importer::COOKIES; |
18 using importer::PASSWORDS; | 18 using importer::PASSWORDS; |
19 using importer::SEARCH_ENGINES; | 19 using importer::SEARCH_ENGINES; |
20 using importer::NONE; | 20 using importer::NONE; |
21 | 21 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 EXPECT_EQ(PASSWORDS, [controller_ servicesToImport]); | 121 EXPECT_EQ(PASSWORDS, [controller_ servicesToImport]); |
122 EXPECT_TRUE([controller_ importSomething]); | 122 EXPECT_TRUE([controller_ importSomething]); |
123 | 123 |
124 [controller_ setImportPasswords:NO]; | 124 [controller_ setImportPasswords:NO]; |
125 [controller_ setImportSearchEngines:YES]; | 125 [controller_ setImportSearchEngines:YES]; |
126 EXPECT_EQ(SEARCH_ENGINES, [controller_ servicesToImport]); | 126 EXPECT_EQ(SEARCH_ENGINES, [controller_ servicesToImport]); |
127 EXPECT_TRUE([controller_ importSomething]); | 127 EXPECT_TRUE([controller_ importSomething]); |
128 | 128 |
129 [controller_ cancel:nil]; | 129 [controller_ cancel:nil]; |
130 } | 130 } |
OLD | NEW |