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

Side by Side Diff: ash/system/palette/palette_tool_manager_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase 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/palette_tool_manager.cc ('k') | ash/system/palette/palette_tray.h » ('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/system/chromeos/palette/palette_tool.h" 5 #include "ash/system/palette/palette_tool.h"
6 #include "ash/common/system/chromeos/palette/palette_tool_manager.h" 6 #include "ash/system/palette/palette_tool_manager.h"
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using namespace ash; 13 using namespace ash;
14 14
15 namespace { 15 namespace {
16 16
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Activating an already active tool will not do anything. 129 // Activating an already active tool will not do anything.
130 palette_tool_manager_->ActivateTool(action_1->GetToolId()); 130 palette_tool_manager_->ActivateTool(action_1->GetToolId());
131 EXPECT_TRUE(action_1->enabled()); 131 EXPECT_TRUE(action_1->enabled());
132 EXPECT_FALSE(action_2->enabled()); 132 EXPECT_FALSE(action_2->enabled());
133 palette_tool_manager_->ActivateTool(action_1->GetToolId()); 133 palette_tool_manager_->ActivateTool(action_1->GetToolId());
134 EXPECT_TRUE(action_1->enabled()); 134 EXPECT_TRUE(action_1->enabled());
135 EXPECT_FALSE(action_2->enabled()); 135 EXPECT_FALSE(action_2->enabled());
136 palette_tool_manager_->DeactivateTool(action_1->GetToolId()); 136 palette_tool_manager_->DeactivateTool(action_1->GetToolId());
137 } 137 }
OLDNEW
« no previous file with comments | « ash/system/palette/palette_tool_manager.cc ('k') | ash/system/palette/palette_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698