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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/scoped_temp_dir.h" | 7 #include "base/scoped_temp_dir.h" |
8 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 8 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
9 #include "chrome/browser/spellchecker/spellcheck_host.h" | 9 #include "chrome/browser/spellchecker/spellcheck_host.h" |
10 #include "chrome/browser/spellchecker/spellcheck_profile.h" | 10 #include "chrome/browser/spellchecker/spellcheck_profile.h" |
11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
12 #include "content/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 class MockSpellCheckHost : public SpellCheckHost { | 20 class MockSpellCheckHost : public SpellCheckHost { |
21 public: | 21 public: |
22 MOCK_METHOD0(UnsetProfile, void()); | 22 MOCK_METHOD0(UnsetProfile, void()); |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 expected2.push_back("fuga"); | 271 expected2.push_back("fuga"); |
272 | 272 |
273 SpellCheckProfile::CustomWordList actual1; | 273 SpellCheckProfile::CustomWordList actual1; |
274 target_->LoadCustomDictionary(&actual1); | 274 target_->LoadCustomDictionary(&actual1); |
275 EXPECT_EQ(actual1, expected1); | 275 EXPECT_EQ(actual1, expected1); |
276 | 276 |
277 SpellCheckProfile::CustomWordList actual2; | 277 SpellCheckProfile::CustomWordList actual2; |
278 target2->LoadCustomDictionary(&actual2); | 278 target2->LoadCustomDictionary(&actual2); |
279 EXPECT_EQ(actual2, expected2); | 279 EXPECT_EQ(actual2, expected2); |
280 } | 280 } |
OLD | NEW |