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

Side by Side Diff: extensions/browser/api/document_scan/document_scan_interface_chromeos_unittest.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/document_scan/document_scan_interface_chromeos. h" 5 #include "extensions/browser/api/document_scan/document_scan_interface_chromeos. h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "chromeos/dbus/mock_lorgnette_manager_client.h" 11 #include "chromeos/dbus/mock_lorgnette_manager_client.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/cros_system_api/dbus/service_constants.h" 13 #include "third_party/cros_system_api/dbus/service_constants.h"
14 14
15 using testing::_; 15 using testing::_;
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 namespace core_api { 19 namespace api {
20 20
21 // Tests of networking_private_crypto support for Networking Private API. 21 // Tests of networking_private_crypto support for Networking Private API.
22 class DocumentScanInterfaceChromeosTest : public testing::Test { 22 class DocumentScanInterfaceChromeosTest : public testing::Test {
23 public: 23 public:
24 DocumentScanInterfaceChromeosTest() 24 DocumentScanInterfaceChromeosTest()
25 : client_(new chromeos::MockLorgnetteManagerClient()) {} 25 : client_(new chromeos::MockLorgnetteManagerClient()) {}
26 ~DocumentScanInterfaceChromeosTest() override {} 26 ~DocumentScanInterfaceChromeosTest() override {}
27 27
28 void SetUp() override { 28 void SetUp() override {
29 scan_interface_.lorgnette_manager_client_ = client_.get(); 29 scan_interface_.lorgnette_manager_client_ = client_.get();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const char kExpectedImageData[] = 115 const char kExpectedImageData[] =
116 "data:image/png;base64,UHJldHR5UGljdHVyZQ=="; 116 "data:image/png;base64,UHJldHR5UGljdHVyZQ==";
117 117
118 EXPECT_CALL(*this, OnScanCompleted(kExpectedImageData, "image/png", "")); 118 EXPECT_CALL(*this, OnScanCompleted(kExpectedImageData, "image/png", ""));
119 scan_interface_.Scan( 119 scan_interface_.Scan(
120 kScannerName, DocumentScanInterface::kScanModeColor, kResolution, 120 kScannerName, DocumentScanInterface::kScanModeColor, kResolution,
121 base::Bind(&DocumentScanInterfaceChromeosTest::OnScanCompleted, 121 base::Bind(&DocumentScanInterfaceChromeosTest::OnScanCompleted,
122 base::Unretained(this))); 122 base::Unretained(this)));
123 } 123 }
124 124
125 } // namespace core_api 125 } // namespace api
126 126
127 } // namespace extensions 127 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698