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

Side by Side Diff: chrome/browser/extensions/settings/settings_frontend_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/scoped_temp_dir.h" 11 #include "base/scoped_temp_dir.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "chrome/browser/extensions/settings/leveldb_settings_storage_factory.h" 13 #include "chrome/browser/extensions/settings/leveldb_settings_storage_factory.h"
14 #include "chrome/browser/extensions/settings/settings_frontend.h" 14 #include "chrome/browser/extensions/settings/settings_frontend.h"
15 #include "chrome/browser/extensions/settings/settings_namespace.h" 15 #include "chrome/browser/extensions/settings/settings_namespace.h"
16 #include "chrome/browser/extensions/settings/settings_test_util.h" 16 #include "chrome/browser/extensions/settings/settings_test_util.h"
17 #include "chrome/browser/value_store/value_store.h" 17 #include "chrome/browser/value_store/value_store.h"
18 #include "chrome/common/chrome_notification_types.h" 18 #include "chrome/common/chrome_notification_types.h"
19 #include "content/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 namespace settings = settings_namespace; 25 namespace settings = settings_namespace;
26 namespace util = settings_test_util; 26 namespace util = settings_test_util;
27 27
28 namespace { 28 namespace {
29 29
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 frontend_->RunWithStorage( 312 frontend_->RunWithStorage(
313 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); 313 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback));
314 frontend_->RunWithStorage( 314 frontend_->RunWithStorage(
315 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); 315 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback));
316 316
317 MessageLoop::current()->RunAllPending(); 317 MessageLoop::current()->RunAllPending();
318 } 318 }
319 319
320 } // namespace extensions 320 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698