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

Side by Side Diff: ash/common/system/chromeos/palette/tools/create_note_unittest.cc

Issue 2316183003: Move a bunch of ash-only vector icons to ash/. (Closed)
Patch Set: drop the "id". Just "icon". It's cleaner. Created 4 years, 3 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
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/system/chromeos/palette/mock_palette_tool_delegate.h" 5 #include "ash/common/system/chromeos/palette/mock_palette_tool_delegate.h"
6 #include "ash/common/system/chromeos/palette/palette_ids.h" 6 #include "ash/common/system/chromeos/palette/palette_ids.h"
7 #include "ash/common/system/chromeos/palette/palette_tool.h" 7 #include "ash/common/system/chromeos/palette/palette_tool.h"
8 #include "ash/common/system/chromeos/palette/tools/create_note_action.h" 8 #include "ash/common/system/chromeos/palette/tools/create_note_action.h"
9 #include "ash/common/test/test_palette_delegate.h" 9 #include "ash/common/test/test_palette_delegate.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
11 #include "ash/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "ui/views/view.h"
14 15
15 namespace ash { 16 namespace ash {
16 17
17 namespace { 18 namespace {
18 19
19 // Base class for all create note ash tests. 20 // Base class for all create note ash tests.
20 class CreateNoteTest : public test::AshTestBase { 21 class CreateNoteTest : public test::AshTestBase {
21 public: 22 public:
22 CreateNoteTest() {} 23 CreateNoteTest() {}
23 ~CreateNoteTest() override {} 24 ~CreateNoteTest() override {}
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 68
68 EXPECT_CALL(*palette_tool_delegate_.get(), 69 EXPECT_CALL(*palette_tool_delegate_.get(),
69 DisableTool(PaletteToolId::CREATE_NOTE)); 70 DisableTool(PaletteToolId::CREATE_NOTE));
70 EXPECT_CALL(*palette_tool_delegate_.get(), HidePalette()); 71 EXPECT_CALL(*palette_tool_delegate_.get(), HidePalette());
71 72
72 tool_->OnEnable(); 73 tool_->OnEnable();
73 EXPECT_EQ(1, test_palette_delegate()->create_note_count()); 74 EXPECT_EQ(1, test_palette_delegate()->create_note_count());
74 } 75 }
75 76
76 } // namespace ash 77 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698