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

Side by Side Diff: chromeos/tpm/tpm_token_info_getter_unittest.cc

Issue 738683002: Move chromeos/tpm_* to chromeos/tpm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the build Created 6 years 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 | « chromeos/tpm/tpm_token_info_getter.cc ('k') | chromeos/tpm/tpm_token_loader.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 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/task_runner.h" 14 #include "base/task_runner.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "chromeos/dbus/fake_cryptohome_client.h" 16 #include "chromeos/dbus/fake_cryptohome_client.h"
17 #include "chromeos/tpm_token_info_getter.h" 17 #include "chromeos/tpm/tpm_token_info_getter.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace { 20 namespace {
21 21
22 // The struct holding information returned by TPMTokenInfoGetter::Start 22 // The struct holding information returned by TPMTokenInfoGetter::Start
23 // callback. 23 // callback.
24 struct TestTPMTokenInfo { 24 struct TestTPMTokenInfo {
25 TestTPMTokenInfo() : enabled(false), slot_id(-2) {} 25 TestTPMTokenInfo() : enabled(false), slot_id(-2) {}
26 26
27 bool IsReady() const { 27 bool IsReady() const {
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 EXPECT_EQ("2222", reported_info.pin); 515 EXPECT_EQ("2222", reported_info.pin);
516 EXPECT_EQ(1, reported_info.slot_id); 516 EXPECT_EQ(1, reported_info.slot_id);
517 517
518 const int64 kExpectedDelays[] = {100}; 518 const int64 kExpectedDelays[] = {100};
519 EXPECT_EQ(std::vector<int64>(kExpectedDelays, 519 EXPECT_EQ(std::vector<int64>(kExpectedDelays,
520 kExpectedDelays + arraysize(kExpectedDelays)), 520 kExpectedDelays + arraysize(kExpectedDelays)),
521 delays_); 521 delays_);
522 } 522 }
523 523
524 } // namespace 524 } // namespace
525
OLDNEW
« no previous file with comments | « chromeos/tpm/tpm_token_info_getter.cc ('k') | chromeos/tpm/tpm_token_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698