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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_unittest.cc ('k') | chrome/browser/spellchecker/spellcheck_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698