| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |