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/extensions/api/cloud_print_private/cloud_print_private_
api.h" | 5 #include "chrome/browser/extensions/api/cloud_print_private/cloud_print_private_
api.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/test/base/ui_test_utils.h" | 12 #include "chrome/test/base/ui_test_utils.h" |
13 #include "net/base/mock_host_resolver.h" | 13 #include "net/dns/mock_host_resolver.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using ::testing::Eq; | 17 using ::testing::Eq; |
18 using ::testing::Property; | 18 using ::testing::Property; |
19 using ::testing::Return; | 19 using ::testing::Return; |
20 using ::testing::_; | 20 using ::testing::_; |
21 | 21 |
22 // A base class for tests below. | 22 // A base class for tests below. |
23 class ExtensionCloudPrintPrivateApiTest : public ExtensionApiTest { | 23 class ExtensionCloudPrintPrivateApiTest : public ExtensionApiTest { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Run this as a hosted app. Since we have overridden the cloud print service | 95 // Run this as a hosted app. Since we have overridden the cloud print service |
96 // URL in the command line, this URL should match the web extent for our | 96 // URL in the command line, this URL should match the web extent for our |
97 // cloud print component app and it should work. | 97 // cloud print component app and it should work. |
98 GURL page_url = GetTestServerURL( | 98 GURL page_url = GetTestServerURL( |
99 "enable_chrome_connector/cloud_print_success_tests.html"); | 99 "enable_chrome_connector/cloud_print_success_tests.html"); |
100 ASSERT_TRUE(RunPageTest(page_url.spec())); | 100 ASSERT_TRUE(RunPageTest(page_url.spec())); |
101 } | 101 } |
102 | 102 |
103 #endif // !defined(OS_CHROMEOS) | 103 #endif // !defined(OS_CHROMEOS) |
OLD | NEW |