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

Side by Side Diff: ash/system/palette/tools/screenshot_unittest.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 | « ash/system/palette/tools/magnifier_mode.cc ('k') | ash/system/power/dual_role_notification.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/common/test/test_palette_delegate.h"
6 #include "ash/common/wm_shell.h"
7 #include "ash/system/palette/mock_palette_tool_delegate.h" 5 #include "ash/system/palette/mock_palette_tool_delegate.h"
8 #include "ash/system/palette/palette_ids.h" 6 #include "ash/system/palette/palette_ids.h"
9 #include "ash/system/palette/palette_tool.h" 7 #include "ash/system/palette/palette_tool.h"
10 #include "ash/system/palette/tools/capture_region_mode.h" 8 #include "ash/system/palette/tools/capture_region_mode.h"
11 #include "ash/system/palette/tools/capture_screen_action.h" 9 #include "ash/system/palette/tools/capture_screen_action.h"
12 #include "ash/test/ash_test_base.h" 10 #include "ash/test/ash_test_base.h"
11 #include "ash/test/test_palette_delegate.h"
12 #include "ash/wm_shell.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 namespace { 18 namespace {
19 19
20 // Base class for all create note ash tests. 20 // Base class for all create note ash tests.
21 class ScreenshotToolTest : public test::AshTestBase { 21 class ScreenshotToolTest : public test::AshTestBase {
22 public: 22 public:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::unique_ptr<PaletteTool> tool = 72 std::unique_ptr<PaletteTool> tool =
73 base::MakeUnique<CaptureScreenAction>(palette_tool_delegate_.get()); 73 base::MakeUnique<CaptureScreenAction>(palette_tool_delegate_.get());
74 EXPECT_CALL(*palette_tool_delegate_.get(), 74 EXPECT_CALL(*palette_tool_delegate_.get(),
75 DisableTool(PaletteToolId::CAPTURE_SCREEN)); 75 DisableTool(PaletteToolId::CAPTURE_SCREEN));
76 EXPECT_CALL(*palette_tool_delegate_.get(), HidePaletteImmediately()); 76 EXPECT_CALL(*palette_tool_delegate_.get(), HidePaletteImmediately());
77 tool->OnEnable(); 77 tool->OnEnable();
78 EXPECT_EQ(1, test_palette_delegate()->take_screenshot_count()); 78 EXPECT_EQ(1, test_palette_delegate()->take_screenshot_count());
79 } 79 }
80 80
81 } // namespace ash 81 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/palette/tools/magnifier_mode.cc ('k') | ash/system/power/dual_role_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698