| 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 "chrome/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class QuittingHistoryDBTask : public HistoryDBTask { | 80 class QuittingHistoryDBTask : public HistoryDBTask { |
| 81 public: | 81 public: |
| 82 QuittingHistoryDBTask() {} | 82 QuittingHistoryDBTask() {} |
| 83 | 83 |
| 84 virtual bool RunOnDBThread(history::HistoryBackend* backend, | 84 virtual bool RunOnDBThread(history::HistoryBackend* backend, |
| 85 history::HistoryDatabase* db) { | 85 history::HistoryDatabase* db) { |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| 88 | 88 |
| 89 virtual void DoneRunOnMainThread() { | 89 virtual void DoneRunOnMainThread() { |
| 90 MessageLoop::current()->Quit(); | 90 MessageLoop::current()->QuitNow(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 ~QuittingHistoryDBTask() {} | 94 ~QuittingHistoryDBTask() {} |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(QuittingHistoryDBTask); | 96 DISALLOW_COPY_AND_ASSIGN(QuittingHistoryDBTask); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 class TestExtensionURLRequestContext : public net::URLRequestContext { | 99 class TestExtensionURLRequestContext : public net::URLRequestContext { |
| 100 public: | 100 public: |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 712 } |
| 713 | 713 |
| 714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { | 714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { |
| 715 return true; | 715 return true; |
| 716 } | 716 } |
| 717 | 717 |
| 718 base::Callback<ChromeURLDataManagerBackend*(void)> | 718 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { | 719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { |
| 720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); | 720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); |
| 721 } | 721 } |
| OLD | NEW |