OLD | NEW |
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/chromeos/extensions/echo_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/echo_private_api.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/chromeos/settings/cros_settings.h" | 10 #include "chrome/browser/chromeos/settings/cros_settings.h" |
11 #include "chrome/browser/chromeos/ui/echo_dialog_view.h" | 11 #include "chrome/browser/chromeos/ui/echo_dialog_view.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/browser/extensions/extension_function_test_utils.h" | 13 #include "chrome/browser/extensions/extension_function_test_utils.h" |
14 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace utils = extension_function_test_utils; | 17 namespace utils = extension_function_test_utils; |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 expected_dialog_buttons_ = ui::DIALOG_BUTTON_CANCEL; | 173 expected_dialog_buttons_ = ui::DIALOG_BUTTON_CANCEL; |
174 dialog_action_ = DIALOG_TEST_ACTION_CANCEL; | 174 dialog_action_ = DIALOG_TEST_ACTION_CANCEL; |
175 | 175 |
176 RunDefaultGetUserFunctionAndExpectResultEquals(false); | 176 RunDefaultGetUserFunctionAndExpectResultEquals(false); |
177 | 177 |
178 EXPECT_EQ(1, dialog_invocation_count()); | 178 EXPECT_EQ(1, dialog_invocation_count()); |
179 } | 179 } |
180 | 180 |
181 } // namespace chromeos | 181 } // namespace chromeos |
OLD | NEW |