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

Side by Side Diff: chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc

Issue 2877883002: Consolidate two IsArcWindow functions to reduce code duplication (Closed)
Patch Set: Address a comment from sadrul@ Created 3 years, 7 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
« no previous file with comments | « chrome/browser/memory/tab_manager_delegate_chromeos.cc ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/memory/tab_manager_delegate_chromeos.h" 5 #include "chrome/browser/memory/tab_manager_delegate_chromeos.h"
6 6
7 #include <algorithm>
8 #include <map> 7 #include <map>
9 #include <string> 8 #include <string>
10 #include <vector> 9 #include <vector>
11 10
12 #include "ash/shell.h"
13 #include "ash/test/ash_test_base.h"
14 #include "base/logging.h"
15 #include "base/memory/weak_ptr.h"
16 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
17 #include "chrome/browser/chromeos/arc/process/arc_process.h"
18 #include "chrome/browser/memory/tab_manager.h"
19 #include "chrome/browser/memory/tab_stats.h"
20 #include "chrome/common/url_constants.h"
21 #include "chromeos/dbus/fake_debug_daemon_client.h" 12 #include "chromeos/dbus/fake_debug_daemon_client.h"
22 #include "components/arc/common/process.mojom.h"
23 #include "components/exo/shell_surface.h"
24 #include "content/public/test/test_browser_thread_bundle.h" 13 #include "content/public/test/test_browser_thread_bundle.h"
25 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
26 #include "ui/aura/window.h"
27 #include "ui/wm/public/activation_client.h"
28 #include "url/gurl.h"
29 15
30 namespace memory { 16 namespace memory {
31 17
32 class TabManagerDelegateTest : public testing::Test { 18 class TabManagerDelegateTest : public testing::Test {
33 public: 19 public:
34 TabManagerDelegateTest() {} 20 TabManagerDelegateTest() {}
35 ~TabManagerDelegateTest() override {} 21 ~TabManagerDelegateTest() override {}
36 22
37 private: 23 private:
38 content::TestBrowserThreadBundle thread_bundle_; 24 content::TestBrowserThreadBundle thread_bundle_;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 439
454 // Check that killed apps are in the map. 440 // Check that killed apps are in the map.
455 const TabManagerDelegate::KilledArcProcessesMap& processes_map = 441 const TabManagerDelegate::KilledArcProcessesMap& processes_map =
456 tab_manager_delegate.recently_killed_arc_processes_; 442 tab_manager_delegate.recently_killed_arc_processes_;
457 EXPECT_EQ(2U, processes_map.size()); 443 EXPECT_EQ(2U, processes_map.size());
458 EXPECT_EQ(1U, processes_map.count("service")); 444 EXPECT_EQ(1U, processes_map.count("service"));
459 EXPECT_EQ(1U, processes_map.count("not-visible")); 445 EXPECT_EQ(1U, processes_map.count("not-visible"));
460 } 446 }
461 447
462 } // namespace memory 448 } // namespace memory
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_manager_delegate_chromeos.cc ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698