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

Unified Diff: chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc

Issue 2811433002: Log app and tab discards. (Closed)
Patch Set: longer message when unable to kill Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc
diff --git a/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc b/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc
index 0789bbbb82e07415f8f3f52bd1aa6b066fe644e4..9979583946d7ad0fb9f3245e67f5eb52b934def2 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc
@@ -13,7 +13,6 @@
#include "ash/test/ash_test_base.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/process/process_handle.h"
#include "chrome/browser/chromeos/arc/process/arc_process.h"
#include "chrome/browser/memory/tab_manager.h"
@@ -22,6 +21,7 @@
#include "chromeos/dbus/fake_debug_daemon_client.h"
#include "components/arc/common/process.mojom.h"
#include "components/exo/shell_surface.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/window.h"
#include "ui/wm/public/activation_client.h"
@@ -29,7 +29,14 @@
namespace memory {
-using TabManagerDelegateTest = testing::Test;
+class TabManagerDelegateTest : public testing::Test {
+ public:
+ TabManagerDelegateTest() {}
+ ~TabManagerDelegateTest() override {}
+
+ private:
+ content::TestBrowserThreadBundle thread_bundle_;
+};
namespace {
constexpr bool kIsFocused = true;
@@ -168,7 +175,6 @@ class MockMemoryStat : public TabManagerDelegate::MemoryStat {
};
TEST_F(TabManagerDelegateTest, SetOomScoreAdj) {
- base::MessageLoop message_loop;
MockTabManagerDelegate tab_manager_delegate;
std::vector<arc::ArcProcess> arc_processes;

Powered by Google App Engine
This is Rietveld 408576698