| 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 "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" | 
| 8 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 8 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 
| 9 #include "chrome/browser/spellchecker/spellcheck_service.h" | 9 #include "chrome/browser/spellchecker/spellcheck_service.h" | 
| 10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" |  | 
| 11 #include "chrome/common/spellcheck_common.h" | 10 #include "chrome/common/spellcheck_common.h" | 
| 12 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" | 
| 13 #include "content/public/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" | 
| 14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" | 
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" | 
| 16 | 15 | 
| 17 using content::BrowserThread; | 16 using content::BrowserThread; | 
| 18 using chrome::spellcheck_common::WordList; | 17 using chrome::spellcheck_common::WordList; | 
| 19 | 18 | 
| 20 static ProfileKeyedService* BuildSpellcheckService(Profile* profile) { | 19 static ProfileKeyedService* BuildSpellcheckService(Profile* profile) { | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 145   EXPECT_EQ(actual1, expected1); | 144   EXPECT_EQ(actual1, expected1); | 
| 146 | 145 | 
| 147   WordList actual2; | 146   WordList actual2; | 
| 148   custom_dictionary2->LoadDictionaryIntoCustomWordList(&actual2); | 147   custom_dictionary2->LoadDictionaryIntoCustomWordList(&actual2); | 
| 149   EXPECT_EQ(actual2, expected2); | 148   EXPECT_EQ(actual2, expected2); | 
| 150 | 149 | 
| 151   // Flush the loop now to prevent service init tasks from being run during | 150   // Flush the loop now to prevent service init tasks from being run during | 
| 152   // TearDown(); | 151   // TearDown(); | 
| 153   MessageLoop::current()->RunUntilIdle(); | 152   MessageLoop::current()->RunUntilIdle(); | 
| 154 } | 153 } | 
| OLD | NEW | 
|---|